Skip to content

Commit

Permalink
Fix uvloop deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Oct 14, 2023
1 parent 6c86f29 commit 32889f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proxy_scraper_checker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 32889f0

Please sign in to comment.