diff options
Diffstat (limited to 'dns/exception.py')
| -rw-r--r-- | dns/exception.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/exception.py b/dns/exception.py index 9486f45..9392373 100644 --- a/dns/exception.py +++ b/dns/exception.py @@ -138,5 +138,5 @@ class ExceptionWrapper: def __exit__(self, exc_type, exc_val, exc_tb): if exc_type is not None and not isinstance(exc_val, self.exception_class): - raise self.exception_class() from exc_val + raise self.exception_class(str(exc_val)) from exc_val return False |
