rasies a KeyError because path is not found. I was expecting it to raise a (subclass of) jsonpatch.JsonPatchException.
Is this a bug or by design? If the latter is the case, then please reconsider this decision. I find it a lot easier to use a Python library when I know that all exceptions, that the API may raise, are a subclasses of a library-specific base exception.
The following patch
when applied via
rasies a
KeyError
becausepath
is not found. I was expecting it to raise a (subclass of)jsonpatch.JsonPatchException
.Is this a bug or by design? If the latter is the case, then please reconsider this decision. I find it a lot easier to use a Python library when I know that all exceptions, that the API may raise, are a subclasses of a library-specific base exception.