From 323ab26c3904f2dbf4c0d6de8e7104f67cb125c3 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 17 Jun 2024 09:40:23 -0600 Subject: Updates --- check_links.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'check_links.py') diff --git a/check_links.py b/check_links.py index 46feb0f..2c84de0 100644 --- a/check_links.py +++ b/check_links.py @@ -25,7 +25,7 @@ async def get_url_response(session, url): async def main(): - timeout = aiohttp.ClientTimeout(total=20) + timeout = aiohttp.ClientTimeout(total=30) async with aiohttp.ClientSession(timeout=timeout) as session: tasks = [] for url in urls: @@ -37,5 +37,6 @@ async def main(): if resp != 200: print(resp, url) + loop = asyncio.get_event_loop() loop.run_until_complete(main()) -- cgit v1.2.3