summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorRyuk <88324835+anonymousx97@users.noreply.github.com>2024-05-20 14:55:06 +0200
committerGitHub <noreply@github.com>2024-05-20 14:55:06 +0200
commitd2f04e80be5ebf7d0fbb5c8f675b5b60d19c7262 (patch)
treefe9e1ad867d90fcce07c6e90f9a3a6f9495f85d2 /g4f
parentUpdate base_provider: Do not nest patch uvloop loop. (diff)
downloadgpt4free-d2f04e80be5ebf7d0fbb5c8f675b5b60d19c7262.tar
gpt4free-d2f04e80be5ebf7d0fbb5c8f675b5b60d19c7262.tar.gz
gpt4free-d2f04e80be5ebf7d0fbb5c8f675b5b60d19c7262.tar.bz2
gpt4free-d2f04e80be5ebf7d0fbb5c8f675b5b60d19c7262.tar.lz
gpt4free-d2f04e80be5ebf7d0fbb5c8f675b5b60d19c7262.tar.xz
gpt4free-d2f04e80be5ebf7d0fbb5c8f675b5b60d19c7262.tar.zst
gpt4free-d2f04e80be5ebf7d0fbb5c8f675b5b60d19c7262.zip
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"):