← Commit history

v0.9.2 defensive subprocess

John Lauer ·2a31f378d0 ·3mo ago ·parent 4d12126
1 file changed +2−1
server.py+2−1
@@ -13,6 +13,7 @@ import json import os import re import subprocess+from proc import run as _safe_run import sys import traceback from http.server import HTTPServer, BaseHTTPRequestHandler@@ -148,7 +149,7 @@ def _detect_running_kicad_instances() -> list[dict]:     if not IS_WINDOWS:         return []     try:-        result = subprocess.run(+        result = _safe_run(             [                 "powershell", "-NoProfile", "-NonInteractive", "-Command",                 "Get-Process kicad -ErrorAction SilentlyContinue | "