zedshaw/lamson — pull request #4 by nburlett (2012-04-18 01:07:48+00:00)
Title: queue.Queue logging bug

This fixes queue.Queue.get to actually exceptions from mail.MailRequest(). Without the change, the logging system encounters this error:

Traceback (most recent call last):
File "/usr/lib/python2.6/logging/__init__.py", line 768, in emit
msg = self.format(record)
File "/usr/lib/python2.6/logging/__init__.py", line 648, in format
return fmt.format(record)
File "/usr/lib/python2.6/logging/__init__.py", line 436, in format
record.message = record.getMessage()
File "/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting

This error is then swallowed by the logging system and never emitted. This causes there to be no evidence that an unparsable email was even received.