Skip to content

Conversation

@dss09
Copy link

@dss09 dss09 commented Mar 6, 2014

No description provided.

Dmitry and others added 8 commits March 6, 2014 14:44
Fix "object of type 'NoneType' has no len()" in mail.fetch()
/..../gmail/message.pyc in parse(self, raw_message)
    180                         make_attachement(attachment.get_payload())
    181 
--> 182         make_attachement(self.message.get_payload())
    183 
    184 

/.../gmail/message.pyc in make_attachement(attachments)
    172         def make_attachement(attachments):
    173             for attachment in attachments:
--> 174                 if attachment.get_content_type() == 'message/rfc822':
    175                     make_attachement(attachment.get_payload())
    176                 else:

AttributeError: 'str' object has no attribute 'get_content_type'
fixing    AttributeError: 'str' object has no attribute 'get_content_…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants