From 9024cf474e06da563334fea7c14c2cc44fb5c6ff Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 12 Nov 2005 17:59:43 +0000 Subject: [PATCH] shorter --- src/notify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/notify.py b/src/notify.py index 84a0d9714..c0a36f8dc 100644 --- a/src/notify.py +++ b/src/notify.py @@ -49,7 +49,7 @@ def dbus_get_interface(): return dbus.Interface(obj, 'org.freedesktop.Notifications') except Exception, e: return None - except dbus.dbus_bindings.DBusException, e: + except dbus.DBusException, e: # This exception could give useful info about why notification breaks print >> sys.stderr, e return None @@ -124,7 +124,7 @@ def dbus_notify(event_type, jid, account, msg_type = '', file_props = None): path = os.path.abspath(path) notif = dbus_get_interface() if notif is None: - raise dbus.dbus_bindings.DBusException() + raise dbus.DBusException() notif.Notify(dbus.String(_('Gajim')), dbus.String(path), dbus.UInt32(0), ntype, dbus.Byte(0), dbus.String(event_type), dbus.String(txt), @@ -135,7 +135,7 @@ def notify(event_type, jid, account, msg_type = '', file_props = None): try: dbus_notify(event_type, jid, account, msg_type, file_props) return - except dbus.dbus_bindings.DBusException, e: + except dbus.DBusException, e: # Connection to DBus failed, try popup pass except TypeError, e: