Skip to content

Commit

Permalink
check for pythoncom
Browse files Browse the repository at this point in the history
  • Loading branch information
dlech committed May 24, 2024
1 parent 2b48574 commit 2b6c49f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bleak/backends/winrt/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ def wait_event(*_):
await event.wait()
except asyncio.TimeoutError:
raise BleakError(
"Thread is configured for Windows GUI but callbacks are not working. Suspect PyWin32 unwanted side effects."
"Thread is configured for Windows GUI but callbacks are not working."
+ (
" Suspect unwanted side effects from importing 'pythoncom'."
if "pythoncom" in sys.modules
else ""
)
)
else:
# if the windows event loop is running, we assume it is going to keep
Expand Down

0 comments on commit 2b6c49f

Please sign in to comment.