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 d201731 commit 55b1a6fCopy full SHA for 55b1a6f
src/unstructured_client/_hooks/custom/split_pdf_hook.py
@@ -63,12 +63,13 @@ def _get_asyncio_loop() -> asyncio.AbstractEventLoop:
63
loop = asyncio.get_event_loop()
64
except RuntimeError:
65
loop = asyncio.new_event_loop()
66
+ asyncio.set_event_loop(loop)
67
else:
68
try:
69
loop = asyncio.get_running_loop()
70
71
- asyncio.set_event_loop(loop)
72
73
return loop
74
75
def _run_coroutines_in_separate_thread(
0 commit comments