[PATCH] Make sure the 'warning' variable is defined before used
David Shea
dshea at redhat.com
Fri Mar 13 11:00:56 UTC 2015
On 03/13/2015 05:49 AM, Vratislav Podzimek wrote:
> Otherwise we get a traceback in the case where all spokes are complete and
> there's no checker or check passes.
>
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
> pyanaconda/ui/gui/hubs/__init__.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/pyanaconda/ui/gui/hubs/__init__.py b/pyanaconda/ui/gui/hubs/__init__.py
> index c9977a0..8d388aa 100644
> --- a/pyanaconda/ui/gui/hubs/__init__.py
> +++ b/pyanaconda/ui/gui/hubs/__init__.py
> @@ -217,6 +217,7 @@ class Hub(GUIObject, common.Hub):
> self._updateContinue()
>
> def _updateContinue(self):
> + warning = None
> if len(self._incompleteSpokes) == 0:
> if self._checker and not self._checker.check():
> warning = self._checker.error_message
Someone beat you to it: https://github.com/rhinstaller/anaconda/pull/35
I just pushed it to master.
More information about the anaconda-patches
mailing list