1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Fixed #23 - Catch AttributeErrors as well when having a tarfile error

This commit is contained in:
Jannis Leidel 2009-04-11 12:05:27 +02:00
parent 14fcda6977
commit 5146b43236

2
pip.py
View file

@ -2101,7 +2101,7 @@ class RequirementSet(object):
else:
try:
fp = tar.extractfile(member)
except KeyError, e:
except (KeyError, AttributeError), e:
# Some corrupt tar files seem to produce this
# (specifically bad symlinks)
logger.warn(