report mattermost connection problems

This commit is contained in:
2020-03-20 06:56:59 -04:00
parent 3e1bafdd8a
commit bc55e958b4
+4 -1
View File
@@ -244,7 +244,10 @@ def pushmattermost(msg):
"icon_url": ICON "icon_url": ICON
} }
rc = mm.webhooks.call_webhook(TOKEN, msg) try:
rc = mm.webhooks.call_webhook(TOKEN, msg)
except Exception as e:
rc = str(e)
if not rc: if not rc:
print(rc) print(rc)