1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-23 22:27:27 +00:00

ClientException testing for on_ready() error catching

This commit is contained in:
Myned 2017-12-08 18:32:24 -05:00
parent 22c0eb4bee
commit a2190c0267

View file

@ -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))