stefankoegl / python-json-patch

Applying JSON Patches in Python
https://python-json-patch.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
459 stars 97 forks source link

fix #102: optimize error handling #113

Closed Alanscut closed 4 years ago

Alanscut commented 4 years ago

As described in #102, when path with -, it will report TypeError: '>' not supported between instances of 'str' and 'int' in python3 , which is not conducive to positioning errors.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.07%) to 65.048% when pulling 86f82becdc7f69a1153f2a7400117bed09ebd8c9 on Alanscut:issue-102 into 9e4d423c22bedad6ffc260541ae587114dfed70a on stefankoegl:master.

stefankoegl commented 4 years ago

Thanks!