File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,19 @@ class LinkTester(BuildTest):
6767 def __init__ (self , concurrency = 16 , ignore_internal_links = False ):
6868 """
6969 Semaphore limits number of concurrent requests for performance
70- Is still nonblocking"""
70+ Is still nonblocking
71+ """
7172 self .concurrency = concurrency
7273 self .ignore_internal_links = ignore_internal_links
7374
7475 @staticmethod
7576 async def fetch (session , url , lock ):
7677 """Locked async HTTP GET"""
7778 async with lock :
78- return await session .get (url , allow_redirects = False , timeout = 3 )
79+ try :
80+ return await session .get (url , allow_redirects = False , timeout = 5 )
81+ except asyncio .exceptions .TimeoutError :
82+ print (f"Took too long trying to fetch { url } " )
7983
8084 async def get_failures (self , links ):
8185 """
You can’t perform that action at this time.
0 commit comments