Skip to content

Commit

Permalink
Mailtrap webhook: fix incorrect reject_reason default
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Edmunds <[email protected]>
  • Loading branch information
cahna and medmunds authored Nov 24, 2024
1 parent 9be584d commit f82372e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anymail/webhooks/mailtrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def parse_events(self, request):
def esp_to_anymail_event(self, esp_event: MailtrapEvent):
event_type = self.event_types.get(esp_event["event"], EventType.UNKNOWN)
timestamp = datetime.fromtimestamp(esp_event["timestamp"], tz=timezone.utc)
reject_reason = self.reject_reasons.get(esp_event["event"], RejectReason.OTHER)
reject_reason = self.reject_reasons.get(esp_event["event"])
custom_variables = esp_event.get("custom_variables", {})
category = esp_event.get("category")
tags = [category] if category else []
Expand Down

0 comments on commit f82372e

Please sign in to comment.