Skip to content

Commit 37e84fc

Browse files
committed
sys.exit
1 parent 7a3e777 commit 37e84fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zhook.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import openziti
33
import json
44
import os
5+
import sys
56

67

78
class MattermostWebhookBody:
@@ -393,6 +394,8 @@ def dumpJson(self):
393394
print(f"Response Status: {r.status_code}")
394395
print(r.headers)
395396
print(r.content)
397+
sys.exit(0)
396398
except Exception as e:
397399
print(f"Exception posting webhook: {e}")
398400
raise e
401+
sys.exit(1)

0 commit comments

Comments
 (0)