Skip to content

Commit

Permalink
🐛 fixed the site name not find.
Browse files Browse the repository at this point in the history
  • Loading branch information
AirportR committed Jun 19, 2024
1 parent aaee0b7 commit e9e7abf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,10 @@ async def fetch_title(s: aiohttp.ClientSession, url):
else:
title = ""
return title
except (ClientConnectorError, ContentTypeError, aiohttp.client_exceptions.ClientError):
except (ClientConnectorError, aiohttp.client_exceptions.ClientError, asyncio.TimeoutError):
return ""
except Exception as e:
logger.info(str(e))
return ""

parsed_url = urlparse(self.url)
Expand Down

0 comments on commit e9e7abf

Please sign in to comment.