Merging upstream version 3.3.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
b9b26928e2
commit
ac7c8fba77
3 changed files with 5 additions and 5 deletions
4
cfgv.py
4
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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue