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

Vratislav Podzimek vpodzime at redhat.com
Fri Mar 13 09:49:00 UTC 2015


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
-- 
2.1.0



More information about the anaconda-patches mailing list