feat(types): Complete strict static analysis and typing track
This commit is contained in:
@@ -146,7 +146,8 @@ def log_tool_call(script: str, result: str, script_path: Optional[str]) -> Optio
|
||||
ps1_path: Optional[Path] = _SCRIPTS_DIR / ps1_name
|
||||
|
||||
try:
|
||||
ps1_path.write_text(script, encoding="utf-8")
|
||||
if ps1_path:
|
||||
ps1_path.write_text(script, encoding="utf-8")
|
||||
except Exception as exc:
|
||||
ps1_path = None
|
||||
ps1_name = f"(write error: {exc})"
|
||||
|
||||
Reference in New Issue
Block a user