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

Fix premature access of possibly non-existing attribute #82

Merged
merged 2 commits into from
Jan 26, 2022

Conversation

markusressel
Copy link
Owner

separate different event parsing methods more clearly
add attribute check to prevent crash

fixes #81

add attribute check to prevent crash
@markusressel markusressel self-assigned this Jan 26, 2022
@markusressel markusressel added the bug Something isn't working label Jan 26, 2022
always try to attach the keystate to the event, if possible
@markusressel markusressel merged commit 73a7325 into master Jan 26, 2022
@markusressel markusressel deleted the bugfix/#81_no_attribute_event branch January 26, 2022 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'InputEvent' object has no attribute 'event'
1 participant