diff --git a/proxy_scraper_checker/__main__.py b/proxy_scraper_checker/__main__.py index 47f873d0c..9c66af63f 100644 --- a/proxy_scraper_checker/__main__.py +++ b/proxy_scraper_checker/__main__.py @@ -24,7 +24,9 @@ def set_event_loop_policy() -> None: except ImportError: pass else: - uvloop.install() # type: ignore[attr-defined] + asyncio.set_event_loop_policy( + uvloop.EventLoopPolicy() # type: ignore[attr-defined] + ) def configure_logging(console: Console, *, debug: bool) -> None: