[master 1/1] Missing local variable check
usta
installerbot-noreply at redhat.com
Wed Mar 11 00:46:20 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 | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/pyanaconda/ui/gui/hubs/__init__.py b/pyanaconda/ui/gui/hubs/__init__.py
index c9977a0..554806a 100644
--- a/pyanaconda/ui/gui/hubs/__init__.py
+++ b/pyanaconda/ui/gui/hubs/__init__.py
@@ -225,10 +225,11 @@ def _updateContinue(self):
# Check that this warning isn't already set to avoid spamming the
# info bar with incomplete spoke messages when the hub starts
- if warning != self._warningMsg:
- self.clear_info()
- self.set_warning(warning)
- self._warningMsg = warning
+ if "warning" in locals():
+ if warning != self._warningMsg:
+ self.clear_info()
+ self.set_warning(warning)
+ self._warningMsg = warning
self._updateContinueButton()
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/ab87f8b3ab292a0658e2758a99e680eeefe5aea6
More information about the anaconda-patches
mailing list