🐛 Fix possible indentation issues
🐛 修复可能的缩进问题
This commit is contained in:
parent
37d3fdcf20
commit
8e0cbc5efd
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user