10000 Use old non-strict behavior of getaddresses · fusionbox/django-ogmios@d6dec58 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6dec58

Browse files
committed
Use old non-strict behavior of getaddresses
yaml-formatted email lists often include trailing commas, which are now rejected by default. python/cpython#102988 https://www.python.org/downloads/release/python-3920/ This option requires the latest patch version of a Python >= 3.8
1 parent 0bcc579 commit d6dec58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ogmios/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get_recipients(self, name):
9696
to_str = self.render_string(self.data[name])
9797
formatted_emails = [
9898
email.utils.formataddr(addr_pair)
99-
for addr_pair in email.utils.getaddresses([to_str])
99+
for addr_pair in email.utils.getaddresses([to_str], strict=False)
100100
]
101101
return [i for i in formatted_emails if i]
102102

0 commit comments

Comments
 (0)
0