fix: _cache_ready.set() in finally so commands dont hang on banner fetch failure
This commit is contained in:
1 parent
23258f0c4b
commit
d405b23f04
1 file changed
+2
-1
@@ -87,9 +87,10 @@ class BlueArchiveGacha(commands.Cog):
|
||||
async def _refresh_banners(self) -> None:
|
||||
try:
|
||||
self._banner_cache = await fetch_banners()
|
||||
self._cache_ready.set()
|
||||
except Exception:
|
||||
log.exception("Banner refresh failed")
|
||||
finally:
|
||||
self._cache_ready.set()
|
||||
|
||||
async def _periodic_refresh(self) -> None:
|
||||
while True:
|
||||
|
||||
Reference in new issue
Block a user