From 1142a1d084e6cd2eda9921bb18ed5fd6b6652287 Mon Sep 17 00:00:00 2001 From: Andrew Psaltis Date: Fri, 19 Jun 2009 18:59:30 -0400 Subject: [PATCH] Fixed wicd-client to actually show the error dialog, by checking e.get_dbus_name() instead of just e. --- wicd/wicd-client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wicd/wicd-client.py b/wicd/wicd-client.py index 97f3095..c7b9114 100755 --- a/wicd/wicd-client.py +++ b/wicd/wicd-client.py @@ -86,9 +86,10 @@ def catchdbus(func): def wrapper(*args, **kwargs): try: return func(*args, **kwargs) - except DBusException, e: - if "DBus.Error.AccessDenied" in e: + except DBusException as e: + if e.get_dbus_name() != None and "DBus.Error.AccessDenied" in e.get_dbus_name(): error(None, language['access_denied']) + #raise raise DBusException(e) else: print "warning: ignoring exception %s" % e