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/rotate.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/rotate.py')
-rw-r--r-- | setuptools/command/rotate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/rotate.py b/setuptools/command/rotate.py index b89353f5..e398834f 100644 --- a/setuptools/command/rotate.py +++ b/setuptools/command/rotate.py @@ -36,8 +36,8 @@ class rotate(Command): raise DistutilsOptionError("Must specify number of files to keep") try: self.keep = int(self.keep) - except ValueError: - raise DistutilsOptionError("--keep must be an integer") + except ValueError as e: + raise DistutilsOptionError("--keep must be an integer") from e if isinstance(self.match, six.string_types): self.match = [ convert_path(p.strip()) for p in self.match.split(',') |