Stop waiting for update check on bot startup (#6687)

This commit is contained in:
Jakub Kuczys
2026-03-06 01:51:22 +01:00
committed by GitHub
parent 9a458fdd83
commit 34cbd15ba9
3 changed files with 51 additions and 24 deletions

View File

@@ -424,7 +424,11 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
owner = app_info.owner
custom_info = await self.bot._config.custom_info()
pypi_version, py_version_req = await fetch_latest_red_version_info()
try:
pypi_version, __ = await fetch_latest_red_version_info()
except (aiohttp.ClientError, TimeoutError) as exc:
log.error("Failed to fetch latest version information from PyPI.", exc_info=exc)
pypi_version = None
outdated = pypi_version and pypi_version > red_version_info
if embed_links: