Commit 92cc0845 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix #589: just catch all exceptions ^^

parent 1fc0d905
......@@ -65,7 +65,7 @@ else:
return
inhibit_sleep_handler.UnInhibit(inhibit_sleep_token)
inhibit_sleep_token = None
except (ImportError, dbus.DBusException) as e:
except Exception, e:
logging.warning("Could not setup DBus for sleep inhibition: %s" % e)
def inhibit_sleep(reason):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment