bandundu / email-archiver

Email archiving tool for IMAP/POP3 accounts (early development)
209 stars 7 forks source link

Handle TypeError for NoneType Object in fetch_and_archive_emails #15

Closed bandundu closed 6 months ago

bandundu commented 7 months ago
          Better this time.  It was able to archive 1000 emails, but then hit the error:

email-archiver-web-1 | 2024-03-18 13:30:26,387 - ERROR - An error occurred during email archiving for account 1: 'NoneType' object is not subscriptable email-archiver-web-1 | 2024-03-18 13:30:26,388 - ERROR - Exception details: Traceback (most recent call last): email-archiver-web-1 | File "/app/email_archiver.py", line 133, in fetch_and_archive_emails email-archiver-web-1 | raw_email = data[0][1] email-archiver-web-1 | TypeError: 'NoneType' object is not subscriptable

Originally posted by @cirrusflyer in https://github.com/bandundu/email-archiver/issues/11#issuecomment-2003930424

bandundu commented 6 months ago

I am closing this issue as I want to have a first stable version and then deploy with docker. I would greatly appreciate if you could use the app bare-metal and support further by opening issues.

Thank you Charles