Raise different exception type in decoding.py
?
#82
Labels
Decoding
Related to the importing of EBML data
development
Development issues: package deployment, project organization, etc.
enhancement
New feature or request
IOError
is raised several places indecoding.py
; in hindsight, this is probably the wrong exception type, since it is an error in the data rather than an error accessing it. Some other exception type should be raised. While aValueError
would be more appropriate, maybe it should be a new subclass ofIOError
to maintain compatibility with existing code that usesebmlite
.There is also one
IOError
raised in a similar situation incore.py
that should probably be some other type.The text was updated successfully, but these errors were encountered: