Skip to content

Commit ffea76d

Browse files
committed
Update scenario_sesv2_email_attachments.py
1 parent 7ad8301 commit ffea76d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

python/example_code/sesv2/attachments_scenario/scenario_sesv2_email_attachments.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ def _setup(self) -> None:
108108
)
109109
verified = identity_info.get("VerifiedForSendingStatus", False)
110110
if verified:
111-
print(f" {self.sender_email} is verified and ready to send.")
111+
print(f" {self.sender_email} is verified and ready to send.")
112112
else:
113113
print(
114-
f" {self.sender_email} exists but is not yet verified."
114+
f" {self.sender_email} exists but is not yet verified."
115115
)
116116
except ClientError as err:
117117
if err.response["Error"]["Code"] == "NotFoundException":
@@ -149,7 +149,7 @@ def _setup(self) -> None:
149149
"Hello {{name}}, Please find the attached document."
150150
),
151151
)
152-
print(f" Template '{self.TEMPLATE_NAME}' created.\n")
152+
print(f" Template '{self.TEMPLATE_NAME}' created.\n")
153153
except ClientError as err:
154154
if err.response["Error"]["Code"] == "AlreadyExistsException":
155155
print(
@@ -199,7 +199,7 @@ def _step1_send_email_with_attachment(self) -> None:
199199
attachments=[attachment],
200200
)
201201

202-
print(f" Email sent! MessageId: {message_id}")
202+
print(f" Email sent! MessageId: {message_id}")
203203
print(
204204
" SES automatically constructed the MIME message with the "
205205
"attachment.\n"
@@ -256,7 +256,7 @@ def _step2_send_email_with_inline_image(self) -> None:
256256
attachments=[attachment],
257257
)
258258

259-
print(f" Email sent! MessageId: {message_id}")
259+
print(f" Email sent! MessageId: {message_id}")
260260
print(
261261
" The ContentId 'logo123' is referenced in the HTML body via\n"
262262
" 'cid:logo123', which lets the image render inline.\n"
@@ -338,7 +338,7 @@ def _cleanup(self) -> None:
338338
# Delete the email template.
339339
try:
340340
self.sesv2_wrapper.delete_email_template(self.TEMPLATE_NAME)
341-
print(f" Template '{self.TEMPLATE_NAME}' deleted.")
341+
print(f" Template '{self.TEMPLATE_NAME}' deleted.")
342342
except ClientError as err:
343343
if err.response["Error"]["Code"] == "NotFoundException":
344344
print(
@@ -359,7 +359,7 @@ def _cleanup(self) -> None:
359359
self.sender_email
360360
)
361361
print(
362-
f" Email identity '{self.sender_email}' deleted."
362+
f" Email identity '{self.sender_email}' deleted."
363363
)
364364
except ClientError as err:
365365
if err.response["Error"]["Code"] == "NotFoundException":

0 commit comments

Comments
 (0)