We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 642c802 + 0a51b66 commit ff426ebCopy full SHA for ff426eb
jsonschema/exceptions.py
@@ -27,6 +27,10 @@ def __init__(
27
schema_path=(),
28
parent=None,
29
):
30
+ # Calling __init__ is important, because otherwise __reduce__ will
31
+ # return empty args tuple on Py2.7 and unpickling will fail because
32
+ # init requires at least one argument.
33
+ super(_Error, self).__init__(message)
34
self.message = message
35
self.path = self.relative_path = deque(path)
36
self.schema_path = self.relative_schema_path = deque(schema_path)
0 commit comments