diff options
author | Cody Hiar <cody@hiar.ca> | 2024-06-17 09:40:23 -0600 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2024-06-17 09:40:23 -0600 |
commit | 323ab26c3904f2dbf4c0d6de8e7104f67cb125c3 (patch) | |
tree | bd925be3213596e73787b1b280a9ab622cc87421 /check_links.py | |
parent | f6817ce84efa3689b485e9e86989e8968dd4a32c (diff) |
Updates
Diffstat (limited to 'check_links.py')
-rw-r--r-- | check_links.py | 3 |
1 files changed, 2 insertions, 1 deletions
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()) |