Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion entity_emailer/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def send_unsent_scheduled_emails(cls):
for email in emails_to_send:
try:
# Send mail
connection.send_messages(email.get('message'))
connection.send_messages([email.get('message')])
except Exception as e:
cls.save_email_exception(email.get('model'), e)

Expand Down
2 changes: 1 addition & 1 deletion entity_emailer/tests/interface_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def test_sends_email_with_specified_from_address(self, render_mock, address_mock
EntityEmailerInterface.send_unsent_scheduled_emails()

args = mock_connection.return_value.__enter__.return_value.send_messages.call_args
self.assertEqual(args[0][0].from_email, from_address)
self.assertEqual(args[0][0][0].from_email, from_address)

@patch('entity_emailer.interface.get_subscribed_email_addresses')
@patch.object(Event, 'render', spec_set=True)
Expand Down
2 changes: 1 addition & 1 deletion entity_emailer/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.3'
__version__ = '2.0.4'
4 changes: 4 additions & 0 deletions release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release Notes
=============

v2.0.4
------
* Bugfix for updated interface

v2.0.3
------
* Merging v2 hotfixes
Expand Down