From 1daecafee401e981b91a9f2df50d4e98b5113542 Mon Sep 17 00:00:00 2001 From: royjr Date: Sun, 30 Aug 2026 20:33:19 -0400 Subject: [PATCH] do we need this --- openpilot/sunnypilot/modeld_v2/modeld.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openpilot/sunnypilot/modeld_v2/modeld.py b/openpilot/sunnypilot/modeld_v2/modeld.py index d9c04d7824..6428dc9324 100755 --- a/openpilot/sunnypilot/modeld_v2/modeld.py +++ b/openpilot/sunnypilot/modeld_v2/modeld.py @@ -366,15 +366,15 @@ def main(demo=False): import threading def load(): nonlocal model - model = ModelState(cam_w=vipc_client_main.width, cam_h=vipc_client_main.height, chestnut=True) + try: + model = ModelState(cam_w=vipc_client_main.width, cam_h=vipc_client_main.height, chestnut=True) + except Exception: + cloudlog.exception("chestnut big model load failed") t = threading.Thread(target=load, daemon=True) t.start() t.join(60) - if model is None: - params.put_bool("ChestnutActive", False) - raise RuntimeError("chestnut model load failed or timed out (60s)") - params.put_bool("ChestnutActive", True) - else: + params.put_bool("ChestnutActive", model is not None) + if model is None: model = ModelState(cam_w=vipc_client_main.width, cam_h=vipc_client_main.height, chestnut=False) params.put_bool("ChestnutLoading", False)