From f3a9df7c35078c8e83af7409aa141ccbd88539ed Mon Sep 17 00:00:00 2001 From: Siphalor Date: Tue, 8 Dec 2020 11:40:08 +0100 Subject: [PATCH] Some small cleanups --- bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index e163a8a..d330651 100644 --- a/bot.py +++ b/bot.py @@ -34,7 +34,7 @@ TOPFIT_WORDS = ( "vortual reality" ) -#LOEH_ID = 327126546970312739 +# LOEH_ID = 327126546970312739 LOEH_ID = 254265844928872448 SIP_ID = 327126546970312739 @@ -94,7 +94,7 @@ async def on_message(message: discord.Message): await loeh.edit(mute=False) if message is not None: await message.edit(content="~~Zu Befehl!~~\nEs sei ihm verziehen.") - except (discord.Forbidden, discord.HTTPException) as error: + except (discord.Forbidden, discord.HTTPException): await message.channel.send('Failed to complete your command, Sir') return elif PING_REGEX.search(message.content): @@ -147,7 +147,7 @@ async def config_prefix_command(ctx: commands.Context, cmd: str = '', key: str = config['loeh-timeout'] = int(val) save_config() await ctx.send('Config successfully updated') - except (ValueError, TypeError) as error: + except (ValueError, TypeError): await ctx.send('Invalid value "' + val + '" for config `' + key + '`')