🐛 Avoid excessive misrepresentation

🐛 避免报错刷屏
This commit is contained in:
Xtao_dada 2022-01-17 23:55:40 +08:00 committed by GitHub
parent 155c774de6
commit 7618fa75f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ def listener(**args):
exc_info = sys.exc_info()[1]
exc_format = format_exc()
try:
await context.reply(lang('run_error'))
await context.edit(lang('run_error'))
except BaseException:
pass
if not diagnostics: