From bc55e958b449bcbd3507581347bc8a0b30db3428 Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Fri, 20 Mar 2020 06:56:59 -0400 Subject: [PATCH] report mattermost connection problems --- hbd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hbd b/hbd index 0405ada..656f5a2 100755 --- a/hbd +++ b/hbd @@ -244,7 +244,10 @@ def pushmattermost(msg): "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: print(rc)