You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jsonschema.exceptions._WrappedReferencingError is unhashable. This is causing issues with error tracking services (e.g. Rollbar) when trying to report these errors to the service.
(_WrappedReferencingError is a private implementation detail, so you should of course never be catching it as-is, just to be sure).
Not all exceptions are going to be hashable. In particular in the example Exception doesn't really pass around any data, so it's trivially hashable, whereas some exception that does have some unhashable data attached to it might not be.
I can leave this open to see if this specific example is possible to make hashable, but in general there's no such promise for exceptions in general.
Julian
added a commit
to python-jsonschema/referencing
that referenced
this issue
Jul 18, 2023
Background
jsonschema.exceptions._WrappedReferencingError
is unhashable. This is causing issues with error tracking services (e.g. Rollbar) when trying to report these errors to the service.Steps to Reproduce
Expected Behavior
I believe exceptions should be hashable. See the following simple example:
The text was updated successfully, but these errors were encountered: