Skip to content

Commit ee511a2

Browse files
authored
chore: bump to v1.1.0 (#89)
1 parent 578c9af commit ee511a2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

examples/batch_email_send.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from typing import List
33

44
import resend
5+
import resend.exceptions
56

67
if not os.environ["RESEND_API_KEY"]:
78
raise EnvironmentError("RESEND_API_KEY is missing")
@@ -22,6 +23,12 @@
2223
},
2324
]
2425

25-
emails = resend.Batch.send(params)
26+
try:
27+
emails = resend.Batch.send(params)
28+
except resend.exceptions.ResendError as e:
29+
print("Failed to send batch emails")
30+
print(f"Error: {e}")
31+
exit(1)
32+
2633
for email in emails:
2734
print(f"Email sent with id: {email.id}")

resend/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.2"
1+
__version__ = "1.1.0"
22

33

44
def get_version() -> str:

0 commit comments

Comments
 (0)