imap: uncatched exception saving message
2014-01-09 11:22:01,513 - leap:write:L#53 - DEBUG - 2014-01-09 11:22:01-0200 [-] adding message to local db 2014-01-09 11:22:01,557 - leap.mail.imap.mailbox:addMessage:L#387 - DEBUG - Adding msg with UID :122 2014-01-09 11:22:01,558 - leap.mail.imap.messages:add_msg:L#1092 - DEBUG - adding message 2014-01-09 11:22:01,562 - leap.mail.decorators:_errback:L#86 - WARNING - Error in method: add_msg 2014-01-09 11:22:01,564 - leap.mail.decorators:_errback:L#87 - ERROR - Traceback (most recent call last): File "/home/drjohn/tmp/Bitmask-linux64-2014-01-08-58387b3b/lib/threading.py", line 525, in __bootstrap self.__bootstrap_inner() File "/home/drjohn/tmp/Bitmask-linux64-2014-01-08-58387b3b/lib/threading.py", line 552, in __bootstrap_inner self.run() File "/home/drjohn/tmp/Bitmask-linux64-2014-01-08-58387b3b/lib/threading.py", line 505, in run self.__target(*self.__args, **self.__kwargs) --- --- File "/home/drjohn/tmp/Bitmask-linux64-2014-01-08-58387b3b/lib/twisted/python/threadpool.py", line 191, in _worker result = context.call(ctx, function, *args, **kwargs) File "/home/drjohn/tmp/Bitmask-linux64-2014-01-08-58387b3b/lib/twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/home/drjohn/tmp/Bitmask-linux64-2014-01-08-58387b3b/lib/twisted/python/context.py", line 81, in callWithContext return func(*args,**kw) File "/home/drjohn/tmp/Bitmask-linux64-2014-01-08-58387b3b/lib/leap/mail/imap/messages.py", line 1106, in add_msg body_phash = body_phash_fun(walk.get_payloads(msg)) File "/home/drjohn/tmp/Bitmask-linux64-2014-01-08-58387b3b/lib/leap/mail/walk.py", line 60, in if "text/plain" in headers.get('content-type')]) exceptions.TypeError: argument of type 'NoneType' is not iterable
(from redmine: created on 2014-01-09, closed on 2014-01-09)