From 74c7c99511bead99c5b58ba5a03d444e8240418f Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Wed, 6 Nov 2013 23:41:37 -0500 Subject: [PATCH] Fix #544 --- src/bitmessageqt/__init__.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 55887b7a..96172742 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -1218,7 +1218,14 @@ class MyForm(QtGui.QMainWindow): if withMessagingMenu: n = Notify.Notification.new( title, subtitle, 'notification-message-email') - n.show() + try: + n.show() + except: + # n.show() has been known to throw this exception: + # gi._glib.GError: GDBus.Error:org.freedesktop.Notifications. + # MaxNotificationsExceeded: Exceeded maximum number of + # notifications + pass return else: self.tray.showMessage(title, subtitle, 1, 2000)