Skip to content

Commit dbca4da

Browse files
committed
more changes
1 parent d900f06 commit dbca4da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supertokens_python/async_to_sync_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def check_event_loop():
2525
except RuntimeError as ex:
2626
if "There is no current event loop in thread" in str(ex):
2727
loop = asyncio.new_event_loop()
28+
nest_asyncio.apply(loop) # type: ignore
2829
asyncio.set_event_loop(loop)
2930

3031

3132
def sync(co: Coroutine[Any, Any, _T]) -> _T:
3233
check_event_loop()
3334
loop = asyncio.get_event_loop()
34-
nest_asyncio.apply(loop) # type: ignore
3535
return loop.run_until_complete(co)

0 commit comments

Comments
 (0)