bmwcarit/Emma

Trap JSON decoding errors

Closed this issue · 0 comments

Description

Python will throw an exception when a JSON input file has no valid syntax. This is not pretty.
=> emma + emma_vis

Expected behaviour

A SCout error message should appear combined with a proper exit of Emma.

Observed behaviour

Python JSONDecodeError appears.

Steps to reproduce

Use invalid JSON config file.

===

=> Same issue with FileNotFoundError
=> emma + emma_vis + emma_deltas