mirror of
https://github.com/gryf/wicd.git
synced 2026-01-03 12:24:14 +01:00
Actually tell the user that he may need to be in wpath.wicd_group if wicd-clientgets an access-denied error.
This commit is contained in:
@@ -88,7 +88,7 @@ def catchdbus(func):
|
|||||||
return func(*args, **kwargs)
|
return func(*args, **kwargs)
|
||||||
except DBusException, e:
|
except DBusException, e:
|
||||||
if e.get_dbus_name() != None and "DBus.Error.AccessDenied" in e.get_dbus_name():
|
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'].replace("$A","<b>"+wpath.wicd_group+"</b>"))
|
||||||
#raise
|
#raise
|
||||||
raise DBusException(e)
|
raise DBusException(e)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user