Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: "object of type 'NoneType' has no len()" in mail.fetch() #57

Open
Nico128 opened this issue Aug 7, 2015 · 0 comments
Open

Bug: "object of type 'NoneType' has no len()" in mail.fetch() #57

Nico128 opened this issue Aug 7, 2015 · 0 comments

Comments

@Nico128
Copy link

Nico128 commented Aug 7, 2015

Hi

I have a script that fetches my emails (more than 5000) and there is an issue with a specific email (maybe also with some others ?). Sorry I can only give you the error and not the content of the email because I don't know which one it is...

Traceback (most recent call last):
File "get_emails_gmail.py", line 54, in
mail.fetch()
File "build\bdist.win-amd64\egg\gmail\message.py", line 181, in fetch
self.parse(results[0])
File "build\bdist.win-amd64\egg\gmail\message.py", line 173, in parse
if not isinstance(attachment, basestring) and attachment.get('Content-Disposition') is not None
File "build\bdist.win-amd64\egg\gmail\message.py", line 223, in init
self.size = int(round(len(self.payload)/1000.0))
TypeError: object of type 'NoneType' has no len()

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

No branches or pull requests

1 participant