🐛 Fix possible indentation issues

🐛 修复可能的缩进问题
This commit is contained in:
Xtao_dada 2021-04-23 00:47:50 +08:00 committed by GitHub
parent 37d3fdcf20
commit 8e0cbc5efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,10 +85,8 @@ def listener(**args):
await attach_report(report, f"exception.{time()}.pagermaid", None,
"Error report generated.")
try:
sentry_sdk.set_context("Target",
{"ChatID": str(context.chat_id), "UserID": str(context.sender_id),
"Msg": context.text})
sentry_sdk.set_tag('com', re.findall("\w+", str.lower(context.text.split()[0]))[0])
sentry_sdk.set_context("Target", {"ChatID": str(context.chat_id), "UserID": str(context.sender_id), "Msg": context.text})
sentry_sdk.set_tag('com', re.findall("\w+",str.lower(context.text.split()[0]))[0])
sentry_sdk.capture_exception(e)
except:
logs.info(