You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the git version, menu.py starts displaying data, and then encounters an error:
...
...
Driver Seat Heater: 0 Passenger Seat Heater: 0
Is Front Defroster On: False Is Rear Defroster On: False
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "./menu.py", line 329, in <module>
main()
File "./menu.py", line 312, in main
menu(vehicles[idx])
File "./menu.py", line 176, in menu
show_vehicle_data(vehicle.get_vehicle_data())
File "./menu.py", line 61, in show_vehicle_data
print(fmt.format(ve['vehicle_name'], vehicle.dist_units(ve['odometer'])))
TypeError: unsupported format string passed to NoneType.__format__
$ python3 --version
Python 3.7.3
The text was updated successfully, but these errors were encountered:
That would mean that either ve['vehicle_name'] or ve['odometer'] equals to None, which is unexpected.
Can you add this line before line 61 and share the output: print(ve['vehicle_name'], ve['odometer'])
With the git version, menu.py starts displaying data, and then encounters an error:
$ python3 --version
Python 3.7.3
The text was updated successfully, but these errors were encountered: