From 573f7bb50e54859948b6e7e62052cb8d4efad363 Mon Sep 17 00:00:00 2001 From: discountchubbs Date: Fri, 28 Aug 2026 15:16:18 -0700 Subject: [PATCH] Update modeld.py --- openpilot/sunnypilot/modeld_v2/modeld.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpilot/sunnypilot/modeld_v2/modeld.py b/openpilot/sunnypilot/modeld_v2/modeld.py index f31f02f65b..5fdaa1dbb9 100755 --- a/openpilot/sunnypilot/modeld_v2/modeld.py +++ b/openpilot/sunnypilot/modeld_v2/modeld.py @@ -62,8 +62,8 @@ def _find_driving_pkl(bundle): if bundle and bundle.models: from openpilot.common.hardware.hw import Paths for model in bundle.models: - if (file_name := getattr(model.artifact, 'fileName', None)): - if _pkl_exists(path := os.path.join(Paths.model_root(), file_name)): + if pkl_name := bundle.models[0].artifact.fileName: + if _pkl_exists(path := os.path.join(Paths.model_root(), pkl_name)): return path return None