🐛 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, await attach_report(report, f"exception.{time()}.pagermaid", None,
"Error report generated.") "Error report generated.")
try: try:
sentry_sdk.set_context("Target", sentry_sdk.set_context("Target", {"ChatID": str(context.chat_id), "UserID": str(context.sender_id), "Msg": context.text})
{"ChatID": str(context.chat_id), "UserID": str(context.sender_id), sentry_sdk.set_tag('com', re.findall("\w+",str.lower(context.text.split()[0]))[0])
"Msg": context.text})
sentry_sdk.set_tag('com', re.findall("\w+", str.lower(context.text.split()[0]))[0])
sentry_sdk.capture_exception(e) sentry_sdk.capture_exception(e)
except: except:
logs.info( logs.info(