Skip to content

Conversation

@pinkycz
Copy link

@pinkycz pinkycz commented Nov 14, 2025

This is a proposed fix for the TypeError: unsupported operand type(s) for -: 'NoneType' and 'int' in trip_parser.py

https://github.com/flobz/psa_car_controller/discussions/1144

@flobz
Copy link
Owner

flobz commented Nov 15, 2025

pinkycz and others added 2 commits November 17, 2025 07:29
Fix AttributeError for sqlite3.Row in trip_parser.py

- Changed from .get() method to direct access with try-except
- Handles None values and missing LEVEL keys
- Fixes test_record_position_charging failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants