From e73817456f0b048af719d8923facf3a1de34da0e Mon Sep 17 00:00:00 2001 From: aleclol <50505980+aleclol@users.noreply.github.com> Date: Fri, 4 Jun 2021 20:53:36 -0400 Subject: [PATCH] Catch 404 on channel (#236) --- chatchart/chatchart.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chatchart/chatchart.py b/chatchart/chatchart.py index 04450c5..32b6a4b 100644 --- a/chatchart/chatchart.py +++ b/chatchart/chatchart.py @@ -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.