From 638bee475c2f772fb8890f9c78c91ac4039684b3 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 4 Sep 2024 22:00:16 +0800 Subject: [PATCH] :bug: Catch all exceptions when cache images --- plugins/genshin/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/genshin/stats.py b/plugins/genshin/stats.py index bd26b154..a45b783b 100644 --- a/plugins/genshin/stats.py +++ b/plugins/genshin/stats.py @@ -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():