Skip to content

Commit

Permalink
Fix #581
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored and boppreh committed Dec 16, 2022
1 parent 9cd260d commit 115524f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion keyboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ def wait(self):
elif _platform.system() == 'Linux':
from. import _nixkeyboard as _os_keyboard
elif _platform.system() == 'Darwin':
from. import _darwinkeyboard as _os_keyboard
try:
from. import _darwinkeyboard as _os_keyboard
except ImportError:
# This can happen during setup if pyobj wasn't already installed
pass
else:
raise OSError("Unsupported platform '{}'".format(_platform.system()))

Expand Down

0 comments on commit 115524f

Please sign in to comment.