Skip to content

Commit

Permalink
Do not attempt to set None as a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dashea committed Mar 13, 2015
1 parent 97a004c commit cf298a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyanaconda/ui/gui/hubs/__init__.py
Expand Up @@ -88,6 +88,8 @@ def __init__(self, data, storage, payload, instclass):
self._inSpoke = False
self._notReadySpokes = []
self._spokes = {}

# Used to store the last result of _updateContinue
self._warningMsg = None

self._checker = None
Expand Down Expand Up @@ -228,9 +230,11 @@ def _updateContinue(self):
# 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:
self.set_warning(warning)

self._updateContinueButton()

@property
Expand Down

0 comments on commit cf298a1

Please sign in to comment.