From 66148d90f2428bf52eab540770b778a2de3c295c Mon Sep 17 00:00:00 2001 From: phxntxm Date: Sun, 3 Feb 2019 15:49:41 -0600 Subject: [PATCH] Convert to int to allow removal --- cogs/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogs/config.py b/cogs/config.py index 3713ba4..d00191b 100644 --- a/cogs/config.py +++ b/cogs/config.py @@ -377,6 +377,8 @@ WHERE async def _handle_remove_custom_battles(self, ctx, setting=None): if setting is None or not setting.isdigit(): raise WrongSettingType("Please provide the number of the custom battle you want to remove") + else: + setting = int(setting) query = """ UPDATE @@ -391,6 +393,8 @@ WHERE async def _handle_remove_custom_hugs(self, ctx, setting=None): if setting is None or not setting.isdigit(): raise WrongSettingType("Please provide the number of the custom hug you want to remove") + else: + setting = int(setting) query = """ UPDATE