🐛 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,
|
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(
|
||||||
|
Loading…
Reference in New Issue
Block a user