In my case I do always set the context, but I also leave template sometimes empty.
Then the "fix" in commit aa1617e creates an error:
AttributeError post_office.tasks.send_queued_mail
'NoneType' object has no attribute 'subject'
on line
subject = engine.from_string(self.template.subject).render(self.context)
In my case I do always set the context, but I also leave template sometimes empty.
Then the "fix" in commit aa1617e creates an error: