Update base_provider.py

pull/1985/head
Ryuk 4 weeks ago committed by GitHub
parent 567b39c330
commit d2f04e80be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save