Update base_provider.py

This commit is contained in:
Ryuk 2024-05-20 18:25:06 +05:30 committed by GitHub
parent 567b39c330
commit d2f04e80be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"):