Skip to content

Commit

Permalink
Accept any 2xx as successful
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik committed Sep 11, 2024
1 parent 64b6337 commit e428706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/notifications/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def send_webhooks_notification(event, user=None, *args, **kwargs):
logger.debug(f"Sending webhook message to endpoint '{endpoint.name}'")
res = webhooks_notification_request(endpoint, event, *args, **kwargs)

if res.status_code in [200, 201]:
if 200 <= res.status_code < 300:
logger.debug(f"Message sent to endpoint '{endpoint.name}' successfully.")
continue

Expand Down

0 comments on commit e428706

Please sign in to comment.