summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Maynard <glenn@zewt.org>2012-05-31 16:58:09 +0000
committerGlenn Maynard <glenn@zewt.org>2012-05-31 16:58:09 +0000
commitee1855f55cc42fb9272ae061592feb3187e31b34 (patch)
tree98cba820737b04b75892ffcc6f79ef5a92b2b91e
parentcaf0d6334adea122a9e28180ecbab4a1affdcf77 (diff)
downloadjsonschema-ee1855f55cc42fb9272ae061592feb3187e31b34.tar.gz
Fix the stack for ValidationErrors being lost.
-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)