Skip to content

Commit

Permalink
Merge pull request #22 from a-u-s-t-i-n/master
Browse files Browse the repository at this point in the history
Add default for when UserVehicleBoundTime isn't there
  • Loading branch information
filcole authored Aug 10, 2021
2 parents 38805c5 + a46098c commit 9ef215f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pycarwings2/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def __init__(self, response):
customer_info = response["CustomerInfo"]
self.tz = customer_info["Timezone"]
self.language = customer_info["Language"]
self.user_vehicle_bound_time = customer_info["VehicleInfo"]["UserVehicleBoundTime"]
self.user_vehicle_bound_time = \
customer_info["VehicleInfo"].get("UserVehicleBoundTime",
"1970-01-01T00:00:00Z")

self.leafs = [{
"vin": self.vin,
Expand Down

0 comments on commit 9ef215f

Please sign in to comment.