paramsd: catch all exceptions during migration (#34965)

Catch all exceptions during migration
pull/34970/head
Kacper Rączy 4 weeks ago committed by GitHub
parent bad6103ce7
commit ffcbdc8c43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      selfdrive/locationd/paramsd.py

@ -213,7 +213,7 @@ def migrate_cached_vehicle_params_if_needed(params_reader: Params):
last_parameters_msg.liveParameters.stiffnessFactor = last_parameters_dict['stiffnessFactor']
last_parameters_msg.liveParameters.angleOffsetAverageDeg = last_parameters_dict['angleOffsetAverageDeg']
params_reader.put("LiveParameters", last_parameters_msg.to_bytes())
except (json.JSONDecodeError, KeyError):
except Exception:
pass

Loading…
Cancel
Save