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):
|
||||||
|
try:
|
||||||
if settings.value("Notify"):
|
if settings.value("Notify"):
|
||||||
n = notify2.Notification(programTitle, message)
|
n = notify2.Notification(programTitle, message)
|
||||||
n.show()
|
n.show()
|
||||||
return
|
return
|
||||||
|
except:
|
||||||
|
print(message)
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue