Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in message.plain #110

Open
HiteshAroraCool opened this issue Feb 22, 2024 · 2 comments
Open

Error in message.plain #110

HiteshAroraCool opened this issue Feb 22, 2024 · 2 comments

Comments

@HiteshAroraCool
Copy link

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
Copy link

Same Error for me. Does somebody have an fix?

@Benji-create
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants