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/command/egg_info.py | |
parent | 308314268233cc56e7a8c5870fec75b566230411 (diff) | |
download | external_python_setuptools-a9eb9e73def8ca6c469e59f1b008746e368ad4c1.tar.gz external_python_setuptools-a9eb9e73def8ca6c469e59f1b008746e368ad4c1.tar.bz2 external_python_setuptools-a9eb9e73def8ca6c469e59f1b008746e368ad4c1.zip |
Fix exception causes all over the codebase
Diffstat (limited to 'setuptools/command/egg_info.py')
-rw-r--r-- | setuptools/command/egg_info.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 7fa89541..0855207c 100644 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -208,11 +208,11 @@ class egg_info(InfoCommon, Command): list( parse_requirements(spec % (self.egg_name, self.egg_version)) ) - except ValueError: + except ValueError as e: raise distutils.errors.DistutilsOptionError( "Invalid distribution name or version syntax: %s-%s" % (self.egg_name, self.egg_version) - ) + ) from e if self.egg_base is None: dirs = self.distribution.package_dir |