sdague / mychevy

Python module to interact with my.chevy website for collecting charge data for chevy bolt
Other
50 stars 8 forks source link

TypeError: 'NoneType' object is not subscriptable #20

Closed kayrozen closed 3 years ago

kayrozen commented 3 years ago

Description

Just test mychevy cli

What I Did

Paste the command(s) you ran and the output.
mychevy -c config.ini

If there was a crash, please include the traceback here.

Traceback (most recent call last):
  File "/home/kay/.local/lib/python3.8/site-packages/mychevy/mychevy.py", line 309, in get_cars
    _LOGGER.debug("Vehicles: %s", data["data"]["vehicleMap"])
TypeError: 'NoneType' object is not subscriptable
BabaIsYou commented 3 years ago

Same behaviour for me with Python 3.7 ;-/

sdague commented 3 years ago

This is a duplicate of https://github.com/sdague/mychevy/issues/22 - will consolidate any answers around that one.