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:
|
except DBusException:
|
||||||
print >> sys.stderr, \
|
print >> sys.stderr, \
|
||||||
_("Can't connect to the daemon, trying to start it automatically...")
|
_("Can't connect to the daemon, trying to start it automatically...")
|
||||||
|
|
||||||
|
try:
|
||||||
bus = dbusmanager.get_bus()
|
bus = dbusmanager.get_bus()
|
||||||
dbus_ifaces = dbusmanager.get_dbus_ifaces()
|
dbus_ifaces = dbusmanager.get_dbus_ifaces()
|
||||||
daemon = dbus_ifaces['daemon']
|
daemon = dbus_ifaces['daemon']
|
||||||
wireless = dbus_ifaces['wireless']
|
wireless = dbus_ifaces['wireless']
|
||||||
wired = dbus_ifaces['wired']
|
wired = dbus_ifaces['wired']
|
||||||
|
except DBusException:
|
||||||
|
print >> sys.stderr, \
|
||||||
|
_("Can't automatically start the daemon, this error is fatal...")
|
||||||
|
|
||||||
if not daemon:
|
if not daemon:
|
||||||
print 'Error connecting to wicd via D-Bus. ' \
|
print 'Error connecting to wicd via D-Bus. ' \
|
||||||
|
|||||||
Reference in New Issue
Block a user