1
0
Fork 0
mirror of synced 2024-05-18 19:42:28 +12:00

Include AttributeError

This commit is contained in:
Phxntxm 2017-07-31 14:23:23 -05:00
parent fa68cba89a
commit 48ac555131

View file

@ -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