aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index fef62942..220cdec7 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -578,7 +578,7 @@ class PackageIndex(Environment):
return local_open(url)
try:
return open_with_auth(url)
- except ValueError, v:
+ except (ValueError, httplib.InvalidURL), v:
msg = ' '.join([str(arg) for arg in v.args])
if warning:
self.warn(warning, msg)