aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/seasons/evergreen/game.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/game.py b/bot/seasons/evergreen/game.py
index de8d0109..21c3b5d7 100644
--- a/bot/seasons/evergreen/game.py
+++ b/bot/seasons/evergreen/game.py
@@ -150,7 +150,12 @@ class Games(Cog):
@tasks.loop(hours=1.0)
async def refresh_genres_task(self) -> None:
"""Refresh genres in every hour."""
- await self._get_genres()
+ try:
+ await self._get_genres()
+ except Exception as e:
+ logger.warning(f"There was error while refreshing genres: {e}")
+ return
+ logger.info("Successfully refreshed genres.")
async def _get_genres(self) -> None:
"""Create genres variable for games command."""