question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting the follow…

 Traceback (most recent call last):
  File "emailparser.py", line 25, in <module>
    for uid, message in messages_from:
  File "/home/graingerkid/blinky/venv/local/lib/python2.7/site-packages/imbox/__init__.py", line 39, in     fetch_list
    yield (uid, self.fetch_by_uid(uid))
  File "/home/graingerkid/blinky/venv/local/lib/python2.7/site-packages/imbox/__init__.py", line 31, in fetch_by_uid
    email_object = parse_email(raw_email)
  File "/home/graingerkid/blinky/venv/local/lib/python2.7/site-packages/imbox/parser.py", line 144, in parse_email
    attachment = parse_attachment(part)
  File "/home/graingerkid/blinky/venv/local/lib/python2.7/site-packages/imbox/parser.py", line 89, in parse_attachment
    'size': len(file_data),
TypeError: object of type 'NoneType' has no len()

It looks to be due to the attachments but I wanted to check before trying to fix in case it was something you were aware of or it’s something weird I’m doing.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
graingerkidcommented, Jun 12, 2015

I also get…

 AttributeError: 'Struct' object has no attribute 'subject'
0reactions
sebixcommented, Jul 12, 2019

Strictly speaking, not in the mail itself: https://tools.ietf.org/html/rfc5322#section-3.6

The only required header fields are the origination date field and the originator address field(s). All other header fields are syntactically optional.

But for usability, this may be feasible 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Definition & Meaning - Merriam-Webster
a · an act or condition of ignorant or imprudent deviation from a code of behavior ; b · an act involving an...
Read more >
Error Definition & Meaning - Dictionary.com
error · a deviation from accuracy or correctness; a mistake, as in action or speech: His speech contained several factual errors. · belief...
Read more >
Error - Definition, Meaning & Synonyms - Vocabulary.com
a misconception resulting from incorrect information · erroneous belief ; inadvertent incorrectness · erroneousness ; part of a statement that is not correct....
Read more >
66 Synonyms & Antonyms for ERRORS - Thesaurus.com
synonyms for errors · fault · flaw · glitch · lapse · miscalculation · miscue · misunderstanding · omission ...
Read more >
Errors (band) - Wikipedia
Errors are a three piece "post-electro" band from Glasgow, Scotland. They are signed to Rock Action Records, the label founded and managed by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found