Skip to content

Commit af66b65

Browse files
committed
Fix pre-commit errors
1 parent 238fac5 commit af66b65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

news/13443.bugfix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Handle malformed version metadata entires and ignore packages
1+
Handle malformed version metadata entries and ignore packages
22
with invalid ``Version`` instead of crashing.

src/pip/_internal/metadata/importlib/_envs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _find_impl(self, location: str) -> Iterator[FoundResult]:
6969
try:
7070
name = get_dist_canonical_name(dist)
7171
distribution = Distribution(dist, info_location, None)
72-
version = distribution.version
72+
distribution.version
7373
except BadMetadata as e:
7474
logger.warning("Skipping %s due to %s", info_location, e.reason)
7575
continue

0 commit comments

Comments
 (0)