h2non / jsonpath-ng

Finally, a JSONPath implementation for Python that aims to be standard compliant. That's all. Enjoy!
Apache License 2.0
603 stars 87 forks source link

Exceptions #70

Closed kaapstorm closed 3 years ago

kaapstorm commented 3 years ago

@h2non this is a small one.

In code that calls parse(), I have been reraising jsonpath-rw parser errors as my own Exception subclass, so I can treat parser errors differently from other exceptions. But that means catching Exception: Not ideal.

This pull request resolves that.

h2non commented 3 years ago

Can you please check the failed tests in CI? https://travis-ci.org/github/h2non/jsonpath-ng/jobs/757704272

kaapstorm commented 3 years ago

Sorry about that! Bad rebase. Fixed.

h2non commented 3 years ago

Thanks!