lmao happy 8.8

This commit is contained in:
Il'ya (Marshal) 2022-06-19 20:53:10 +02:00
parent 33fbdcad25
commit df8c3e8421

View file

@ -335,7 +335,9 @@ async def crawl(url: str, session: aiohttp.ClientSession):
await _crawl(url, session)
except (ServerSideError, ServerDisconnectedError, TimeoutError, ClientConnectorError):
logger.warning(f'Client or timeout error. Retrying {url}')
VISITED_LINKS.remove(url)
if url in VISITED_LINKS:
VISITED_LINKS.remove(url)
else:
break