aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'iw/timezone_gui.py')
-rw-r--r--iw/timezone_gui.py4
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):