You should do a check for warning being None in the if condition, though, otherwise you might find yourself overriding a legitimate warning stored in self._warningMsg with None. -- To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/35