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