Catch 404 on channel (#236)

This commit is contained in:
aleclol
2021-06-04 20:53:36 -04:00
committed by GitHub
parent 3bc65b688e
commit e73817456f

View File

@@ -279,6 +279,11 @@ class Chatchart(commands.Cog):
await loading_message.delete()
except discord.NotFound:
continue
except discord.NotFound:
try:
await loading_message.delete()
except discord.NotFound:
continue
msg_data = self.calculate_member_perc(global_history)
# If no members are found.