mirror of
https://github.com/gryf/wicd.git
synced 2026-01-09 07:14:13 +01:00
Fixed wicd-client to actually show the error dialog, by checking e.get_dbus_name() instead of just e.
This commit is contained in:
@@ -86,9 +86,10 @@ def catchdbus(func):
|
|||||||
def wrapper(*args, **kwargs):
|
def wrapper(*args, **kwargs):
|
||||||
try:
|
try:
|
||||||
return func(*args, **kwargs)
|
return func(*args, **kwargs)
|
||||||
except DBusException, e:
|
except DBusException as e:
|
||||||
if "DBus.Error.AccessDenied" in e:
|
if e.get_dbus_name() != None and "DBus.Error.AccessDenied" in e.get_dbus_name():
|
||||||
error(None, language['access_denied'])
|
error(None, language['access_denied'])
|
||||||
|
#raise
|
||||||
raise DBusException(e)
|
raise DBusException(e)
|
||||||
else:
|
else:
|
||||||
print "warning: ignoring exception %s" % e
|
print "warning: ignoring exception %s" % e
|
||||||
|
|||||||
Reference in New Issue
Block a user