I checked generate_email() in email_template/email_template.py and like you say, it is impossible not to have a return value that is not an email dictionary so I prefer to leave it like this to reflect that. If this changes in the future we can adapt then.
As for your usability suggestion, I just committed this as I think this is a very welcome improvement. Thank you for bringing this up!
Hi Graeme,
thank you for the review!
I checked generate_email() in email_template/ email_template. py and like you say, it is impossible not to have a return value that is not an email dictionary so I prefer to leave it like this to reflect that. If this changes in the future we can adapt then.
As for your usability suggestion, I just committed this as I think this is a very welcome improvement. Thank you for bringing this up!