Commit 0849126
committed
fix: add base class to exception
pycyphal.application.file.RemoteFileError was introduced as common exception
base class/tag type to catch exceptions resulting from remote file operations
using the Cyphal remote file system interface.
In Python exceptions must inherit from BaseException, otherwise a TypeError
will occur:
TypeError: exceptions must derive from BaseException
RemoteFileError does not inherit from BaseException and can't thus be used in
except clauses.
This fix lets RemoteFileError inherit from RuntimeError, so that
RemoteFileError can be used as intended.
this fixes commit 40e1482
Signed-off-by: Hannes Weisbach <[email protected]>1 parent 7cb43b5 commit 0849126
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | | - | |
| 757 | + | |
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
| |||
0 commit comments