handle bad VIN (#24712)

old-commit-hash: 36fdf50f98
taco
Adeeb Shihadeh 3 years ago committed by GitHub
parent 3df7552b7b
commit 2163c6bf2d
  1. 3
      selfdrive/car/car_helpers.py

@ -116,6 +116,9 @@ def fingerprint(logcan, sendcan):
vin = VIN_UNKNOWN
exact_fw_match, fw_candidates, car_fw = True, set(), []
if len(vin) != 17:
cloudlog.event("Malformed VIN", vin=vin, error=True)
vin = VIN_UNKNOWN
cloudlog.warning("VIN %s", vin)
Params().put("CarVin", vin)

Loading…
Cancel
Save