Notifications: Catch all DBus errors
This commit is contained in:
parent
7cd781e921
commit
0573d42d29
|
@ -61,12 +61,8 @@ class Notification:
|
||||||
try:
|
try:
|
||||||
proxy = Gio.DBusProxy.new_finish(res)
|
proxy = Gio.DBusProxy.new_finish(res)
|
||||||
self._daemon_capabilities = proxy.GetCapabilities()
|
self._daemon_capabilities = proxy.GetCapabilities()
|
||||||
except GLib.Error as error:
|
except GLib.Error:
|
||||||
if error.domain == 'g-dbus-error-quark':
|
log.exception('Notifications D-Bus connection failed')
|
||||||
log.info('Notifications D-Bus connection failed: %s',
|
|
||||||
error.message)
|
|
||||||
else:
|
|
||||||
raise
|
|
||||||
else:
|
else:
|
||||||
log.debug('Notifications D-Bus connected')
|
log.debug('Notifications D-Bus connected')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue