From 0573d42d2937300bd0b6cdc8ea997dca1723e853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 16 Feb 2019 20:08:00 +0100 Subject: [PATCH] Notifications: Catch all DBus errors --- gajim/gtk/notification.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gajim/gtk/notification.py b/gajim/gtk/notification.py index a5081b19d..c63550f69 100644 --- a/gajim/gtk/notification.py +++ b/gajim/gtk/notification.py @@ -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')