summaryrefslogtreecommitdiffstats
path: root/events
diff options
context:
space:
mode:
Diffstat (limited to 'events')
-rw-r--r--events/src/peer_eventsapi.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/events/src/peer_eventsapi.py b/events/src/peer_eventsapi.py
index 6cba277bf70..59808ada539 100644
--- a/events/src/peer_eventsapi.py
+++ b/events/src/peer_eventsapi.py
@@ -161,7 +161,7 @@ def rows_to_table(table, rows):
num_ok_rows += 1 if row.ok else 0
table.add_row([row.hostname,
"UP" if row.node_up else "DOWN",
- "OK" if row.ok else "NOT OK: {1}".format(
+ "OK" if row.ok else "NOT OK: {0}".format(
row.error)])
return num_ok_rows
@@ -386,6 +386,8 @@ class NodeWebhookTestCmd(Cmd):
resp = requests.post(args.url, headers=http_headers)
except requests.ConnectionError as e:
node_output_notok("{0}".format(e))
+ except requests.exceptions.InvalidSchema as e:
+ node_output_notok("{0}".format(e))
if resp.status_code != 200:
node_output_notok("{0}".format(resp.status_code))