handle bad VIN (#24712)

pull/24728/head
Adeeb Shihadeh 3 years ago committed by GitHub
parent 921a411da5
commit 36fdf50f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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