awalon / MailToTelegramForwarder

MailToTelegramForwarder is a Python based daemon that will fetch mails from a remote IMAP server and forward them via Telegram API.
GNU General Public License v3.0
40 stars 18 forks source link

TypeError: 'type' object is not subscriptable #14

Open xycainoff opened 1 year ago

xycainoff commented 1 year ago

trying to execute script:

Traceback (most recent call last): File "/usr/local/bin/mailToTelegramForwarder", line 278, in class MailBody: File "/usr/local/bin/mailToTelegramForwarder", line 281, in MailBody images: typing.Optional[dict[str, MailAttachment]] = None TypeError: 'type' object is not subscriptable

xycainoff commented 1 year ago

version Python 3.7.3

jbdu12 commented 1 year ago

Same error with version 0.2.2 Version Python 3.7.3

jbdu12 commented 1 year ago

With version Python 3.9.2, it's good :+1:

awalon commented 1 year ago

Hello @xycainoff, sorry for late response. Is it working for you as well with Python 3.9.2 or newer?