mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
ClientException testing for on_ready() error catching
This commit is contained in:
parent
22c0eb4bee
commit
a2190c0267
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue