Update mw.py

pull/391/head
midoks 2 years ago
parent ec9d7e337d
commit 435e565559
  1. 10
      class/core/mw.py

@ -1735,7 +1735,7 @@ def tgbotNotifyTest(app_token, chat_id):
return False
def notifyMessage(msg, stype='common', trigger_time=300, is_write_log=True):
def notifyMessageTry(msg, stype='common', trigger_time=300, is_write_log=True):
lock_file = getPanelTmp() + '/notify_lock.json'
if not os.path.exists(lock_file):
@ -1767,6 +1767,14 @@ def notifyMessage(msg, stype='common', trigger_time=300, is_write_log=True):
return do_notify
def notifyMessage(msg, stype='common', trigger_time=300, is_write_log=True):
try:
return notifyMessageTry(msg, stype, trigger_time, is_write_log)
except Exception as e:
print(mw.getTracebackInfo())
return False
##################### notify end #########################################

Loading…
Cancel
Save