diff options
Diffstat (limited to 'pkg_resources.py')
| -rw-r--r-- | pkg_resources.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index e2d64e6c..48f7689b 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1794,8 +1794,8 @@ class Distribution(object): self._version = safe_version(line.split(':',1)[1].strip()) return self._version else: - raise AttributeError( - "Missing 'Version:' header in PKG-INFO", self + raise ValueError( + "Missing 'Version:' header and/or PKG-INFO file", self ) version = property(version) |
