Skip to content

Commit

Permalink
update status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
wslyvh committed Aug 27, 2024
1 parent 1b83a57 commit af0d90d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pretalx_webhook/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.3"
__version__ = "0.1.4"
2 changes: 1 addition & 1 deletion pretalx_webhook/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def on_schedule_release(sender, schedule, user, **kwargs):
headers=headers,
)

if response.status_code == 200:
if response.status_code in [200, 201, 204]:
logger.info(f"Webhook sent successfully for event {sender.slug}")
else:
logger.error(f"Webhook failed for event {sender.slug}. Status code: {response.status_code}")
Expand Down

0 comments on commit af0d90d

Please sign in to comment.