temp remove random shit

This commit is contained in:
Il'ya (Marshal) 2022-04-28 09:22:34 +02:00
parent 3eb636e8e3
commit feab4bde95

View file

@ -335,6 +335,10 @@ class RetryError(Exception):
async def crawl(url: str, session: aiohttp.ClientSession):
try:
# f*ck this shit. I believe it's temp solution
if 'css/telegram.css' in url:
return
logger.info(f'Process {url}')
async with session.get(f'{PROTOCOL}{url}', allow_redirects=False, timeout=TIMEOUT) as response:
if response.status // 100 == 5: