fix(unitree_g1): silence bandit findings in SONIC example/pipeline

This commit is contained in:
Martino Russi
2026-06-26 13:39:45 +02:00
parent fdde436776
commit 744f3667c0
3 changed files with 6 additions and 4 deletions
@@ -766,7 +766,7 @@ def _planner_worker(path, req_q, res_q, stop_evt, version, seed, use_gpu):
while not stop_evt.is_set():
try:
ctx, gf, ms_dict = req_q.get(timeout=0.05)
except Exception:
except queue.Empty: # nosec B112 - idle poll, nothing queued this tick
continue
try:
inp = _build_planner_inputs(ctx, ms_dict, version, seed)