remove impossible assertion twisty
authorMark Hammond <mhammond@skippinet.com.au>
Sat, 04 Apr 2009 16:03:19 +1100
branchtwisty
changeset 154 6ad39a0fb3d061529bc6692d7a2373d039dcefea
parent 153 c109e37a2770ba8cdb51b5cb59334a705848e2dc
child 155 fc98c21c3b84be2aa37cea4bd163eae8bd80c642
push id1
push userroot
push dateWed, 08 Apr 2009 01:46:05 +0000
remove impossible assertion
server/python/junius/proto/imap.py
--- a/server/python/junius/proto/imap.py
+++ b/server/python/junius/proto/imap.py
@@ -209,17 +209,16 @@ class ImapClientFactory(protocol.ClientF
 # 'raw/message/rfc822' as output
 class IMAPConverter(base.ConverterBase):
   def convert(self, doc):
     # I need the binary attachment.
     return self.doc_model.open_attachment(doc['_id'], "rfc822",
               ).addCallback(self._cb_got_attachment, doc)
 
   def _cb_got_attachment(self, content, doc):
-    assert content, "can't locate attachment for %r" % doc['_id']
     # the 'rfc822' module knows what to do...
     return doc_from_bytes(content)
 
 
 class IMAPAccount(base.AccountBase):
   def startSync(self, conductor):
     self.factory = ImapClientFactory(self, conductor)
     return self.factory.connect()