[rhinstaller/anaconda/pulls/134 rhel7-branch] Fix crash when entering TUI mode
vpodzime
installerbot-noreply at redhat.com
Thu Jun 11 12:11:52 UTC 2015
> @@ -694,7 +694,10 @@ def collect_spokes(mask_paths, category):
> spokes = []
> for mask, path in mask_paths:
> spokes.extend(collect(mask, path,
> - lambda obj: hasattr(obj, "category") and obj.category is not None and obj.category.__name__ == category))
> + lambda obj: hasattr(obj, "category")
> + and obj.category is not None
> + and hasattr(obj.category,"__name__")
> + and obj.category.__name__ == category))
The last two lines can be reduced to ``getattr(obj.category, "__name__", None) == category``.
--
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/134#discussion_r32213997
More information about the anaconda-patches
mailing list