mirror of
https://github.com/gryf/wicd.git
synced 2025-12-21 13:28:08 +01:00
wicd-curses: catch unhandled exception when automatically starting the wicd daemon fails
This commit is contained in:
@@ -1247,11 +1247,16 @@ def setup_dbus(force=True):
|
||||
except DBusException:
|
||||
print >> sys.stderr, \
|
||||
_("Can't connect to the daemon, trying to start it automatically...")
|
||||
|
||||
try:
|
||||
bus = dbusmanager.get_bus()
|
||||
dbus_ifaces = dbusmanager.get_dbus_ifaces()
|
||||
daemon = dbus_ifaces['daemon']
|
||||
wireless = dbus_ifaces['wireless']
|
||||
wired = dbus_ifaces['wired']
|
||||
except DBusException:
|
||||
print >> sys.stderr, \
|
||||
_("Can't automatically start the daemon, this error is fatal...")
|
||||
|
||||
if not daemon:
|
||||
print 'Error connecting to wicd via D-Bus. ' \
|
||||
|
||||
Reference in New Issue
Block a user