Browse Source

Fixed program crash if OS doesn't support baloon notification

master
Rinaldus 5 years ago
parent
commit
c025371c1b
Signed by: Rinaldus
GPG Key ID: C34E249005178E87
  1. 12
      mail-notifier.py

12
mail-notifier.py

@ -440,10 +440,14 @@ def mail_check(): @@ -440,10 +440,14 @@ def mail_check():
# check was successfull, lastCheckCount is updating
window.lastCheckCount = mail_count
def notify(message):
if settings.value("Notify"):
n = notify2.Notification(programTitle, message)
n.show()
return
try:
if settings.value("Notify"):
n = notify2.Notification(programTitle, message)
n.show()
return
except:
print(message)
pass

Loading…
Cancel
Save