From a2190c026773ec5166481e9ed7b2f2b4bcbee77b Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 8 Dec 2017 18:32:24 -0500 Subject: [PATCH] ClientException testing for on_ready() error catching --- src/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/run.py b/src/run.py index c342b1c..52f4867 100644 --- a/src/run.py +++ b/src/run.py @@ -110,6 +110,8 @@ async def on_message(message): @bot.event async def on_error(error, *args, **kwargs): + print(bot.is_closed()) + print(bot.is_ready()) print('\n! ! ! ! !\nE R R O R : {}\n! ! ! ! !\n'.format(error), file=sys.stderr) tb.print_exc() await bot.get_user(u.config['owner_id']).send('**ERROR** \N{WARNING SIGN}\n```\n{}```'.format(error))