mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-21 08:56:29 +00:00
fix: #1051
This commit is contained in:
committed by
Florian BEZANNIER
parent
8f0743fb42
commit
fa8faca1b9
@@ -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([])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user