Open HiteshAroraCool opened 6 months ago
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
Same Error for me. Does somebody have an fix?
My Solution is to just parse the html message with bs4 for now. Message html is working fine on my end.
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