summaryrefslogtreecommitdiff
path: root/jsonschema.py
diff options
context:
space:
mode:
Diffstat (limited to 'jsonschema.py')
-rw-r--r--jsonschema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonschema.py b/jsonschema.py
index d00835b..4e184ae 100644
--- a/jsonschema.py
+++ b/jsonschema.py
@@ -343,7 +343,7 @@ class Validator(object):
try:
self._meta_validator.validate(schema, self._version)
except ValidationError as e:
- raise SchemaError(str(e))
+ raise SchemaError(str(e)), None, sys.exc_info()[2]
self._errors = []
self._validate(instance, schema)