[24] fix webhooks

pull/1392/head^2
meisnate12 2 years ago
parent 1adb074acb
commit b572af04fe

@ -1 +1 @@
1.19.0-develop23 1.19.0-develop24

@ -36,6 +36,7 @@ class Webhooks:
elif webhook.startswith("https://hooks.slack.com/services"): elif webhook.startswith("https://hooks.slack.com/services"):
json = self.slack(json) json = self.slack(json)
response = self.config.post(webhook, json=json) response = self.config.post(webhook, json=json)
if response is not None:
try: try:
response_json = response.json() response_json = response.json()
logger.trace(f"Response: {response_json}") logger.trace(f"Response: {response_json}")

Loading…
Cancel
Save