Skip to content

Commit daef82c

Browse files
committed
Amazon SES: improve missing client error
1 parent 25980d8 commit daef82c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

anymail/backends/amazon_ses.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ def post_to_esp(self, payload, message):
103103
client_send_api = getattr(self.client, payload.api_name)
104104
except AttributeError:
105105
raise NotImplementedError(
106-
f"boto3 sesv2 client does not have method {payload.api_name!r}."
107-
f" Check {payload.__class__.__name__}.api_name."
106+
f"{self.client!r} does not have method {payload.api_name!r}."
108107
) from None
109108
try:
110109
response = client_send_api(**payload.params)

0 commit comments

Comments
 (0)