mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Use specific ESP name in error messages.
Change (e.g.,) "ESP API response 400" to "Mailgun API response 400".
This commit is contained in:
@@ -42,7 +42,8 @@ class EmailBackend(AnymailRequestsBackend):
|
||||
recipient_status[email] = AnymailRecipientStatus(message_id=message_id, status=status)
|
||||
except (KeyError, TypeError):
|
||||
raise AnymailRequestsAPIError("Invalid Mandrill API response format",
|
||||
email_message=message, payload=payload, response=response)
|
||||
email_message=message, payload=payload, response=response,
|
||||
backend=self)
|
||||
return recipient_status
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user