Fix error message when removing quotes by index

This commit is contained in:
2021-03-02 11:41:04 +01:00
parent 2a27706186
commit ced630f9a2

1
bot.py
View File

@@ -335,6 +335,7 @@ async def quote_remove_command(ctx: commands.Context, author: str, quote: str):
try: try:
quote = int(quote) quote = int(quote)
quotes[author].pop(quote) quotes[author].pop(quote)
return
except ValueError: except ValueError:
pass pass