mirror of
https://github.com/gryf/wicd.git
synced 2026-02-25 03:35:48 +01:00
Restore python 2.5 compatibility in both clients.
This commit is contained in:
@@ -86,7 +86,7 @@ def catchdbus(func):
|
||||
def wrapper(*args, **kwargs):
|
||||
try:
|
||||
return func(*args, **kwargs)
|
||||
except DBusException as e:
|
||||
except DBusException, e:
|
||||
if e.get_dbus_name() != None and "DBus.Error.AccessDenied" in e.get_dbus_name():
|
||||
error(None, language['access_denied'])
|
||||
#raise
|
||||
|
||||
Reference in New Issue
Block a user