From 44dca56fd0182b8ef0bb07070cf2b900f1628476 Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 19 Feb 2019 23:09:01 -0500 Subject: [PATCH] Remove unnecessary exit logic --- src/run.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/run.py b/src/run.py index 29f9ff6..7794cad 100644 --- a/src/run.py +++ b/src/run.py @@ -142,15 +142,6 @@ async def on_error(error, *args, **kwargs): await bot.get_user(u.config['owner_id']).send('**ERROR** \N{WARNING SIGN}\n```\n{}```'.format(error)) if u.temp['startup']: - with suppress(err.NotFound): - if u.temp['startup'][0] == 'guild': - ctx = bot.get_channel(u.temp['startup'][1]) - else: - ctx = bot.get_user(u.temp['startup'][1]) - message = await ctx.get_message(u.temp['startup'][2]) - - await message.add_reaction('\N{WARNING SIGN}') - u.temp.clear() u.dump(u.temp, 'temp/temp.pkl')