TypeError: list indices must be integers, not str
johann-lau opened this issue · 3 comments
johann-lau commented
Traceback (most recent call last):
File "Inbox.py", line 39, in <module>
subject, encoding = decode_header(msg['Subject'])[0]
TypeError: list indices must be integers, not str
I tried deleting [0]
but it didn't work.
x4nth055 commented
johann-lau commented
I use terminal on MacOS. I have Python 3.9.1.
johann-lau commented
Worked fine now, thanks anyway! :)