Skip to content

Commit

Permalink
Amazon SES: improve missing client error
Browse files Browse the repository at this point in the history
  • Loading branch information
medmunds committed May 16, 2024
1 parent 25980d8 commit daef82c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions anymail/backends/amazon_ses.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ def post_to_esp(self, payload, message):
client_send_api = getattr(self.client, payload.api_name)
except AttributeError:
raise NotImplementedError(
f"boto3 sesv2 client does not have method {payload.api_name!r}."
f" Check {payload.__class__.__name__}.api_name."
f"{self.client!r} does not have method {payload.api_name!r}."
) from None
try:
response = client_send_api(**payload.params)
Expand Down

0 comments on commit daef82c

Please sign in to comment.