Fixed program crash if OS doesn't support baloon notification
This commit is contained in:
parent
6ccb04632b
commit
c025371c1b
|
@ -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…
Reference in New Issue