summaryrefslogtreecommitdiffstats
path: root/cfgv.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-09-06 04:21:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-09-06 04:21:54 +0000
commit6b00b00e82cc639d257e5f0a1fc521788e44dd96 (patch)
tree56830d72073464faf44084f71c640e164960dbb2 /cfgv.py
parentReleasing debian version 3.3.0-2. (diff)
downloadcfgv-6b00b00e82cc639d257e5f0a1fc521788e44dd96.tar.xz
cfgv-6b00b00e82cc639d257e5f0a1fc521788e44dd96.zip
Merging upstream version 3.3.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'cfgv.py')
-rw-r--r--cfgv.py4
1 files changed, 2 insertions, 2 deletions
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):