[master 3/3] Missing local variable check

usta installerbot-noreply at redhat.com
Wed Mar 11 21:16:04 UTC 2015


From: =?UTF-8?q?=C3=96mer=20Fad=C4=B1l=20USTA?= <omerusta at gmail.com>

The "warning" (local variable) is not defined in whole conditions thus
it causes "Not defined" error in
anaconda/pyanaconda/ui/gui/hubs/__init__.py
This solves #34
---
 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 @@ def _handleCompleteness(self, spoke, update_continue=True):
             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


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/46c72bfc1017e594dc7bfe9dc35e0ba6fe984a50


More information about the anaconda-patches mailing list