From d2f04e80be5ebf7d0fbb5c8f675b5b60d19c7262 Mon Sep 17 00:00:00 2001 From: Ryuk <88324835+anonymousx97@users.noreply.github.com> Date: Mon, 20 May 2024 18:25:06 +0530 Subject: Update base_provider.py --- g4f/providers/base_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/providers') 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"): -- cgit v1.2.3