From ced630f9a22041c55f798d7b4cd26177f3aa84d9 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Tue, 2 Mar 2021 11:41:04 +0100 Subject: [PATCH] Fix error message when removing quotes by index --- bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.py b/bot.py index f631d96..e9ba0c9 100644 --- a/bot.py +++ b/bot.py @@ -335,6 +335,7 @@ async def quote_remove_command(ctx: commands.Context, author: str, quote: str): try: quote = int(quote) quotes[author].pop(quote) + return except ValueError: pass