From 48ac555131715d4c40943bf617861302b9b08577 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Mon, 31 Jul 2017 14:23:23 -0500 Subject: [PATCH] Include AttributeError --- cogs/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/admin.py b/cogs/admin.py index b930f2a..58834fb 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -89,7 +89,7 @@ class Administration: # Try to remove it, if it fails then it doesn't match try: msgs.pop(num) - except IndexError: + except (IndexError, AttributeError): await ctx.send("That is not a valid match!") return @@ -200,7 +200,7 @@ class Administration: # Try to remove it, if it fails then it doesn't match try: msgs.pop(num) - except IndexError: + except (IndexError, AttributeError): await ctx.send("That is not a valid match!") return