Skip to content

Commit e22d1a5

Browse files
committed
style(safety): 修复 YAPF 格式问题
1 parent 44237f2 commit e22d1a5

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

trpc_agent_sdk/tools/safety/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@
5454
"ScanInput",
5555
"ScriptType",
5656
]
57-

trpc_agent_sdk/tools/safety/_safety_filter.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,8 @@ def __init__(
8181
self._policy = SafetyPolicy.from_file(path)
8282
logger.info("SafetyFilter: Loaded policy from %s", path)
8383
else:
84-
raise FileNotFoundError(
85-
f"SafetyFilter: Policy file not found at {path}. "
86-
f"Create tool_safety_policy.yaml or pass a valid policy_path."
87-
)
84+
raise FileNotFoundError(f"SafetyFilter: Policy file not found at {path}. "
85+
f"Create tool_safety_policy.yaml or pass a valid policy_path.")
8886
self._scanner = SafetyScanner(self._policy)
8987
self._audit_logger = AuditLogger()
9088

0 commit comments

Comments
 (0)