Update latcontrol_vehicle_tunes.py

This commit is contained in:
firestar5683
2026-08-02 19:09:24 -05:00
parent 2833fdc54d
commit 2691ee89e5
@@ -1,3 +1,4 @@
import ast
import json
import math
import numpy as np
@@ -905,7 +906,10 @@ def normalize_flm_overrides(overrides) -> dict:
try:
overrides = json.loads(stripped)
except Exception:
return {}
try:
overrides = ast.literal_eval(stripped)
except (SyntaxError, ValueError):
return {}
if not isinstance(overrides, dict):
return {}