OpenCyphal / pycyphal

Python implementation of the Cyphal protocol stack.
https://pycyphal.readthedocs.io/
MIT License
119 stars 106 forks source link

Specify display of exception to InvalidMediaConfigurationError. #188

Closed silverv closed 2 years ago

silverv commented 2 years ago

As mentioned in https://forum.uavcan.org/t/yakut-error-oserror-errno-22-invalid-argument/1434/2 it would be a significant usability boost if an error handler was added that caught OSError and raised the more sensible InvalidMediaConfigurationError.

pavel-kirienko commented 2 years ago

Duplicate of #185