Skip to content

Commit

Permalink
Fix english
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Feb 11, 2025
1 parent 6085057 commit d25268b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kinto_emailer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _get_emailer_hooks(storage, context):
collection_id = context["collection_id"]
bucket_uri = "/buckets/%s" % bucket_id
# Look-up collection metadata.
# If the event on the collection, do not rely storage, use the event payload.
# If the event is on the collection, do not rely on storage, use the event payload.
if context["resource_name"] == "collection":
metadata = next(
impacted["old"] if context["action"] == "delete" else impacted["new"]
Expand Down Expand Up @@ -147,7 +147,7 @@ def get_messages(storage, context):
if not conditions_met:
continue

msg = hook["template"].format(**context)
msg = hook["template"].format(**context) or "(no body)"
subject = hook.get("subject", "New message").format(**context)
recipients = _expand_recipients(storage, hook["recipients"], context)

Expand Down

0 comments on commit d25268b

Please sign in to comment.