Unhandled exception in listener callback
Traceback (most recent call last):
File "pynput/_util/__init__.py", line 229, in inner
File "pynput/_util/darwin.py", line 283, in _handler
File "pynput/keyboard/_darwin.py", line 289, in _handle
File "pynput/_util/__init__.py", line 145, in inner
File "main.py", line 103, in on_press
File "main.py", line 85, in on_key_press
File "main.py", line 76, in auto_convert
File "pyperclip/__init__.py", line 135, in copy_osx_pyobjc
File "pyperclip/__init__.py", line 111, in _stringifyText
pyperclip.PyperclipException: only str, int, float, and bool values can be copied to the clipboard, not NoneType
It's a bit random so I'm not sure when or why does it happen
but at certain times the keyboard for text conversion simply won't work
and the only remedy will be to restart 'baafucha'
in some of those cases (but not always) I've noticed the terminal will show the following error: