🐛 Catch all exceptions when cache images

This commit is contained in:
xtaodada 2024-09-04 22:00:16 +08:00
parent 2a20785a94
commit 638bee475c
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -110,7 +110,7 @@ class PlayerStatsPlugins(Plugin):
async def _download_resource(self, url: str) -> str:
try:
return await self.download_resource(url)
except UrlResourcesNotFoundError:
except Exception:
path = Path(url)
file_path = RESOURCE_DIR / "img" / "city" / path.name
if file_path.exists():