Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

None object has no attribute get in on message event #23

Open
NathanTech7713 opened this issue Feb 19, 2023 · 3 comments
Open

None object has no attribute get in on message event #23

NathanTech7713 opened this issue Feb 19, 2023 · 3 comments

Comments

@NathanTech7713
Copy link

Hello,

Sorry for this, I tried to resolve it myself but I really don't know enough about websockets.
After launching the bot it logs in, and then errors with the message:
error from callback <bound method WebSockC
lient.on_message of <Reddit_ChatBot_Python._ws_client.WebSockClient object at 0x011C23A0>>: 'NoneType' object has no attribute 'get'

thanks in advance for any advice

@powerfulkob
Copy link

I have encountered the same problem. Is the login working for anyone at the moment?

@NathanTech7713
Copy link
Author

I put up a pull request here:

#24

That fixed it for me, but feedback welcome (especially on whether I actually did the PR properly).

@powerfulkob
Copy link

@NathanTech7713 Thanks! It works indeed and the PR looks good to me.

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

No branches or pull requests

2 participants