1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-23 14:42:29 +01:00

Restore python 2.5 compatibility in both clients.

This commit is contained in:
Andrew Psaltis
2009-06-20 21:41:17 -04:00
parent e10969637a
commit 9ec96c1254
2 changed files with 2 additions and 2 deletions

View File

@@ -1049,7 +1049,7 @@ setup_dbus()
if __name__ == '__main__':
try:
parser = OptionParser(version="wicd-curses-%s (using wicd %s)" % (CURSES_REV,daemon.Hello()))
except Exception as e:
except Exception, e:
if "DBus.Error.AccessDenied" in e.get_dbus_name():
print language['access_denied_wc'].replace('$A','\033[1;34m'+wpath.wicd_group+'\033[0m')
sys.exit(1)

View File

@@ -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