Skip to content

parallel.py: ensure valid asyncio event loop#139

Open
doctorcolossus wants to merge 1 commit into
balta2ar:masterfrom
doctorcolossus:patch-3
Open

parallel.py: ensure valid asyncio event loop#139
doctorcolossus wants to merge 1 commit into
balta2ar:masterfrom
doctorcolossus:patch-3

Conversation

@doctorcolossus

Copy link
Copy Markdown
Contributor

resolves #138

@jemabaris

Copy link
Copy Markdown

Amazing, that finally worked for me!

@drocta

drocta commented Apr 30, 2026

Copy link
Copy Markdown

This seems like it works, but why does it raise an exception and then immediately catch it and establish the new event loop, rather than just, establishing the new event loop in the conditional that currently raises the exception?

(There may well be a good reason; I’m asking, not saying it should do it without the try/except.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

“No current event loop“ when running with Python 3.14

3 participants