mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-03-14 04:51:42 +01:00
lmao happy 8.8
This commit is contained in:
parent
33fbdcad25
commit
df8c3e8421
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue