We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738b433 commit 99b9dbbCopy full SHA for 99b9dbb
1 file changed
cecli/run_cmd.py
@@ -134,7 +134,9 @@ async def run_cmd_async(
134
135
if platform.system() == "Windows":
136
loop = asyncio.get_running_loop()
137
- if not isinstance(loop, asyncio.SelectorEventLoop):
+ if hasattr(asyncio, "SelectorEventLoop") and not isinstance(
138
+ loop, asyncio.SelectorEventLoop
139
+ ):
140
# Fallback to synchronous version if not using SelectorEventLoop
141
return await loop.run_in_executor(
142
None,
0 commit comments