This commit is contained in:
Florian Bezannier
2025-04-09 09:04:07 +02:00
committed by Florian BEZANNIER
parent 8f0743fb42
commit fa8faca1b9
+1 -1
View File
@@ -195,7 +195,7 @@ def get_trips():
trips = trips_by_vin[car.vin]
trips_as_dict = trips.get_trips_as_dict()
return jsonify(trips_as_dict)
except (IndexError, TypeError):
except (IndexError, TypeError, KeyError):
logger.debug("Failed to get trips, there is probably not enough data yet:", exc_info=True)
return jsonify([])