mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 22:27:28 +00:00
Fix exception reference in on_error event
This commit is contained in:
parent
456c795f75
commit
d512a6e879
1 changed files with 3 additions and 3 deletions
|
@ -136,7 +136,7 @@ async def on_message(message):
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_error(error, *args, **kwargs):
|
async def on_error(error, *args, **kwargs):
|
||||||
print('\n! ! ! ! !\nE R R O R : {}\n! ! ! ! !\n'.format(error), file=sys.stderr)
|
print('\n! ! ! ! !\nE R R O R : {}\n! ! ! ! !\n'.format(sys.exc_info()[1].text), file=sys.stderr)
|
||||||
tb.print_exc()
|
tb.print_exc()
|
||||||
await bot.get_user(u.config['owner_id']).send('**ERROR** \N{WARNING SIGN}\n```\n{}```'.format(error))
|
await bot.get_user(u.config['owner_id']).send('**ERROR** \N{WARNING SIGN}\n```\n{}```'.format(error))
|
||||||
await bot.get_channel(u.config['info_channel']).send('**ERROR** \N{WARNING SIGN}\n```\n{}```'.format(error))
|
await bot.get_channel(u.config['info_channel']).send('**ERROR** \N{WARNING SIGN}\n```\n{}```'.format(error))
|
||||||
|
@ -235,8 +235,8 @@ async def test(ctx):
|
||||||
if post['tags']:
|
if post['tags']:
|
||||||
temptags = post['tags'].split(' ')
|
temptags = post['tags'].split(' ')
|
||||||
cis = []
|
cis = []
|
||||||
for tag in suggested:
|
# for tag in suggested:
|
||||||
pass
|
# pass
|
||||||
for tag in temptags:
|
for tag in temptags:
|
||||||
tags.append(f'[{tag}](https://e621.net/post?tags={tag})')
|
tags.append(f'[{tag}](https://e621.net/post?tags={tag})')
|
||||||
# tags = ' '.join(tags)
|
# tags = ' '.join(tags)
|
||||||
|
|
Loading…
Reference in a new issue