UnboundLocalError: local variable 'content' referenced before assignment
While dogfooding on user.leap.se, I couldn't reply a mail I got using Bitmask mail:
2017-06-09T11:54:03+0200 [leap.bitmask.mail.outgoing.service.OutgoingMail#error] Error while sending: <twisted.python.failure.Failure exceptions.UnboundLocalError: local variable 'content' referenced before assignment>
2017-06-09T11:54:03+0200 [pixelated.resources.mails_resource#error] Unable to format event {'log_namespace': 'pixelated.resources.mails_resource', 'log_level': <LogLevel=error>, 'log_logger': <Logger 'pixelated.resources.mails_resource'>, 'log_time': 1497002043.854509, 'log_source': None, 'log_format': "error occurred while sending: ('Failed to send mail to all recipients', {u'yyy@autistici.org': <twisted.python.failure.Failure exceptions.UnboundLocalError: local variable 'content' referenced before assignment>})"}: u"u'yyy@autistici"
Full log here: bitmaskd.log
Not sure if it makes sense to use Bitmask mail for dogfooding given Pixelated is abandonned now...