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

Getting 'AttributeError' Exception Thrown #1864

Open
canada4663 opened this issue May 4, 2019 · 1 comment
Open

Getting 'AttributeError' Exception Thrown #1864

canada4663 opened this issue May 4, 2019 · 1 comment

Comments

@canada4663
Copy link

canada4663 commented May 4, 2019

I am getting uncaught AttributeError thrown at the line below:

except ValueError:

It seems that the code is designed to catch exceptions where the 'command' key doesn't exist, however, if the message doesn't included an object with the get method and is only a 'str' then this fails.

@canada4663
Copy link
Author

canada4663 commented May 4, 2019

Related #1466

I believe that this code will fail whenever there isn't a object with get method in the 'Message' key of the event.

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

1 participant