aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/bot.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bot/bot.py b/bot/bot.py
index d18805dd..4f238df8 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -153,8 +153,12 @@ class SeasonalBot(commands.Bot):
devlog = self.get_channel(Channels.devlog)
if not devlog:
- log.warning("Log failed to send. Devlog channel not found.")
- return
+ log.info(f"Fetching devlog channel as it wasn't found in the cache (ID: {Channels.devlog})")
+ try:
+ devlog = await self.fetch_channel(Channels.devlog)
+ except discord.HTTPException as discord_exc:
+ log.exception("Fetch failed", exc_info=discord_exc)
+ return
if not icon:
icon = self.user.avatar_url_as(format="png")