summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
Diffstat (limited to 'g4f')
-rw-r--r--g4f/providers/base_provider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/providers/base_provider.py b/g4f/providers/base_provider.py
index d6c24387..a03dcbba 100644
--- a/g4f/providers/base_provider.py
+++ b/g4f/providers/base_provider.py
@@ -34,7 +34,7 @@ def get_running_loop(check_nested: bool) -> Union[AbstractEventLoop, None]:
try:
import uvloop
if isinstance(loop, uvloop.Loop):
- return
+ return loop
except (ImportError, ModuleNotFoundError):
pass
if check_nested and not hasattr(loop.__class__, "_nest_patched"):