From 28eafd79abe7b736c7005436cc45669af5cdc410 Mon Sep 17 00:00:00 2001 From: Jan-Oliver Kaiser Date: Sat, 21 Dec 2013 15:16:30 +0100 Subject: [PATCH] Do not swallow unrelated exceptions which are almost always masked by user-specified Schema error messages --- schema.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/schema.py b/schema.py index d2376a0..fc4449e 100644 --- a/schema.py +++ b/schema.py @@ -156,9 +156,6 @@ def validate(self, data): return s.validate(data) except SchemaError as x: raise SchemaError([None] + x.autos, [e] + x.errors) - except BaseException as x: - raise SchemaError('%r.validate(%r) raised %r' % (s, data, x), - self._error) if type(s) is type: if isinstance(data, s): return data