[PATCH] Make sure the 'warning' variable is defined before used

Martin Kolman mkolman at redhat.com
Fri Mar 13 10:12:44 UTC 2015


On Fri, 2015-03-13 at 10:49 +0100, 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
Looks good, ACK!



More information about the anaconda-patches mailing list