Skip to content

Commit

Permalink
chore: bump to v1.1.0 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
drish authored May 17, 2024
1 parent 578c9af commit ee511a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion examples/batch_email_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import List

import resend
import resend.exceptions

if not os.environ["RESEND_API_KEY"]:
raise EnvironmentError("RESEND_API_KEY is missing")
Expand All @@ -22,6 +23,12 @@
},
]

emails = resend.Batch.send(params)
try:
emails = resend.Batch.send(params)
except resend.exceptions.ResendError as e:
print("Failed to send batch emails")
print(f"Error: {e}")
exit(1)

for email in emails:
print(f"Email sent with id: {email.id}")
2 changes: 1 addition & 1 deletion resend/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0.2"
__version__ = "1.1.0"


def get_version() -> str:
Expand Down

0 comments on commit ee511a2

Please sign in to comment.