From 6b00b00e82cc639d257e5f0a1fc521788e44dd96 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 Sep 2021 06:21:43 +0200 Subject: Merging upstream version 3.3.1. Signed-off-by: Daniel Baumann --- cfgv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cfgv.py') diff --git a/cfgv.py b/cfgv.py index 2a9ceab..701d944 100644 --- a/cfgv.py +++ b/cfgv.py @@ -31,7 +31,7 @@ def validate_context(msg): yield except ValidationError as e: _, _, tb = sys.exc_info() - raise ValidationError(e, ctx=msg).with_traceback(tb) + raise ValidationError(e, ctx=msg).with_traceback(tb) from None @contextlib.contextmanager @@ -40,7 +40,7 @@ def reraise_as(tp): yield except ValidationError as e: _, _, tb = sys.exc_info() - raise tp(e).with_traceback(tb) + raise tp(e).with_traceback(tb) from None def _dct_noop(self, dct): -- cgit v1.2.3