diff options
author | Glenn Maynard <glenn@zewt.org> | 2012-05-31 16:58:09 +0000 |
---|---|---|
committer | Glenn Maynard <glenn@zewt.org> | 2012-05-31 16:58:09 +0000 |
commit | ee1855f55cc42fb9272ae061592feb3187e31b34 (patch) | |
tree | 98cba820737b04b75892ffcc6f79ef5a92b2b91e | |
parent | caf0d6334adea122a9e28180ecbab4a1affdcf77 (diff) | |
download | jsonschema-ee1855f55cc42fb9272ae061592feb3187e31b34.tar.gz |
Fix the stack for ValidationErrors being lost.
-rw-r--r-- | jsonschema.py | 2 |
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) |