Skip to content

Commit 46ec707

Browse files
committed
Remove unraised LockError.
1 parent fb7b632 commit 46ec707

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pip/_internal/download.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from pip._vendor.cachecontrol import CacheControlAdapter
1717
from pip._vendor.cachecontrol.cache import BaseCache
1818
from pip._vendor.cachecontrol.caches import FileCache
19-
from pip._vendor.lockfile import LockError
2019
from pip._vendor.requests.adapters import BaseAdapter, HTTPAdapter
2120
from pip._vendor.requests.auth import AuthBase, HTTPBasicAuth
2221
from pip._vendor.requests.models import CONTENT_CHUNK_SIZE, Response
@@ -539,7 +538,7 @@ def suppressed_cache_errors():
539538
"""
540539
try:
541540
yield
542-
except (LockError, OSError, IOError):
541+
except (OSError, IOError):
543542
pass
544543

545544

0 commit comments

Comments
 (0)