fix call to notify_another_way
This commit is contained in:
parent
cd21d4a68f
commit
ea592cdcf7
1 changed files with 4 additions and 4 deletions
|
@ -630,8 +630,8 @@ class DesktopNotification:
|
||||||
dbus.UInt32(timeout*1000),
|
dbus.UInt32(timeout*1000),
|
||||||
reply_handler=self.attach_by_id,
|
reply_handler=self.attach_by_id,
|
||||||
error_handler=self.notify_another_way)
|
error_handler=self.notify_another_way)
|
||||||
except Exception:
|
except Exception, e:
|
||||||
self.notify_another_way()
|
self.notify_another_way(e)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
self.notif.Notify(
|
self.notif.Notify(
|
||||||
|
@ -645,8 +645,8 @@ class DesktopNotification:
|
||||||
dbus.UInt32(timeout*1000),
|
dbus.UInt32(timeout*1000),
|
||||||
reply_handler=self.attach_by_id,
|
reply_handler=self.attach_by_id,
|
||||||
error_handler=self.notify_another_way)
|
error_handler=self.notify_another_way)
|
||||||
except Exception:
|
except Exception, e:
|
||||||
self.notify_another_way()
|
self.notify_another_way(e)
|
||||||
|
|
||||||
def attach_by_id(self, id_):
|
def attach_by_id(self, id_):
|
||||||
self.id = id_
|
self.id = id_
|
||||||
|
|
Loading…
Add table
Reference in a new issue