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
|
# check was successfull, lastCheckCount is updating
|
||||||
window.lastCheckCount = mail_count
|
window.lastCheckCount = mail_count
|
||||||
def notify(message):
|
def notify(message):
|
||||||
if settings.value("Notify"):
|
try:
|
||||||
n = notify2.Notification(programTitle, message)
|
if settings.value("Notify"):
|
||||||
n.show()
|
n = notify2.Notification(programTitle, message)
|
||||||
return
|
n.show()
|
||||||
|
return
|
||||||
|
except:
|
||||||
|
print(message)
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue