Commit 0573d42d authored by Philipp Hörist's avatar Philipp Hörist

Notifications: Catch all DBus errors

parent 7cd781e9
......@@ -61,12 +61,8 @@ class Notification:
try:
proxy = Gio.DBusProxy.new_finish(res)
self._daemon_capabilities = proxy.GetCapabilities()
except GLib.Error as error:
if error.domain == 'g-dbus-error-quark':
log.info('Notifications D-Bus connection failed: %s',
error.message)
else:
raise
except GLib.Error:
log.exception('Notifications D-Bus connection failed')
else:
log.debug('Notifications D-Bus connected')
......
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