Fixed program crash if OS doesn't support baloon notification

This commit is contained in:
Rinaldus 2017-11-16 15:40:12 +03:00
parent 6ccb04632b
commit c025371c1b
Signed by: Rinaldus
GPG Key ID: C34E249005178E87
1 changed files with 8 additions and 4 deletions

View File

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