diff options
author | 2011-08-03 09:30:57 +0000 | |
---|---|---|
committer | 2011-08-03 09:30:57 +0000 | |
commit | 755b077c183da69efeef110d90c4d07ce18ba89e (patch) | |
tree | b6d80b101fb5adaed3ea5358e57c0059d48e2ae9 | |
parent | iw/timezone_gui.py: fix custom_widegt_handler (diff) | |
download | anaconda-755b077c183da69efeef110d90c4d07ce18ba89e.tar.gz anaconda-755b077c183da69efeef110d90c4d07ce18ba89e.tar.bz2 anaconda-755b077c183da69efeef110d90c4d07ce18ba89e.zip |
iw/timezone_gui.py: enhance custom_widget_handler
-rw-r--r-- | iw/timezone_gui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py index ecac31e..e61dba3 100644 --- a/iw/timezone_gui.py +++ b/iw/timezone_gui.py @@ -64,14 +64,14 @@ class TimezoneWindow(InstallWindow): def custom_widget_handler(self, xml, function_name, widget_name, str1, str2, int1, int2): - if isinstance(function_name, string): + try: if hasattr(self, function_name): handler = getattr(self, function_name) return handler(str1, str2, int1, int2) else: # Lame. return gtk.Label() - else: + except: return gtk.Label() def timezone_widget_create (self, str1, str2, int1, int2): |