aboutsummaryrefslogtreecommitdiff
path: root/check_links.py
diff options
context:
space:
mode:
Diffstat (limited to 'check_links.py')
-rw-r--r--check_links.py3
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())