pull/541/head
meisnate12 3 years ago
parent 364f261b4c
commit e0c42c272a

@ -19,6 +19,7 @@ class Webhooks:
logger.debug("")
logger.debug(f"JSON: {json}")
for webhook in list(set(webhooks)):
response = None
if self.config.trace_mode:
logger.debug(f"Webhook: {webhook}")
if webhook == "notifiarr":
@ -30,6 +31,7 @@ class Webhooks:
break
else:
response = self.config.post(webhook, json=json)
if response:
try:
response_json = response.json()
if self.config.trace_mode:

Loading…
Cancel
Save