diff options
author | Ram Rachum <ram@rachum.com> | 2020-06-16 13:31:12 +0300 |
---|---|---|
committer | Ram Rachum <ram@rachum.com> | 2020-06-28 22:20:23 +0300 |
commit | a9eb9e73def8ca6c469e59f1b008746e368ad4c1 (patch) | |
tree | 8c31a8e9003fd08f998ecc691d57ab08637926ce /setuptools/config.py | |
parent | 308314268233cc56e7a8c5870fec75b566230411 (diff) | |
download | python-setuptools-git-a9eb9e73def8ca6c469e59f1b008746e368ad4c1.tar.gz |
Fix exception causes all over the codebase
Diffstat (limited to 'setuptools/config.py')
-rw-r--r-- | setuptools/config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/config.py b/setuptools/config.py index 45df2e3f..a8f8b6b0 100644 --- a/setuptools/config.py +++ b/setuptools/config.py @@ -42,9 +42,10 @@ class StaticModule: for target in statement.targets if isinstance(target, ast.Name) and target.id == attr ) - except Exception: + except Exception as e: raise AttributeError( - "{self.name} has no attribute {attr}".format(**locals())) + "{self.name} has no attribute {attr}".format(**locals()) + ) from e @contextlib.contextmanager |