jeremyephron / simplegmail

A simple Gmail API client for applications in Python
MIT License
336 stars 73 forks source link

Error in message.plain #110

Open HiteshAroraCool opened 6 months ago

HiteshAroraCool commented 6 months ago

While using the for loop to print messages, this error comes up.

TypeError Traceback (most recent call last) in <cell line: 1>() 6 print("Preview: " + message.snippet) 7 ----> 8 print("Message Body: " + message.plain) # or message.html

TypeError: can only concatenate str (not "NoneType") to str

Benji-create commented 4 months ago

Same Error for me. Does somebody have an fix?

Benji-create commented 4 months ago

My Solution is to just parse the html message with bs4 for now. Message html is working fine on my end.