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

AttributeError: '_KeyboardListener' object has no attribute 'blocking_keys' #139

Closed
2press opened this issue Mar 16, 2018 · 1 comment
Closed

Comments

@2press
Copy link

2press commented Mar 16, 2018

In the current master version I regularly encounter this exception, when calling unhook_all()

keyboard.unhook_all() keyboard\__init__.py", line 534, in unhook_all _listener.blocking_keys.clear() AttributeError: '_KeyboardListener' object has no attribute 'blocking_keys'

@boppreh
Copy link
Owner

boppreh commented Mar 29, 2018

That happens when calling unhook_all without having ever created any hooks/hotkeys. An unusual situation, but surely shouldn't be illegal.

Should be fixed now.

@boppreh boppreh closed this as completed Mar 29, 2018
simon2x pushed a commit to simon2x/Advanced-Action-Scheduler that referenced this issue Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants