Skip to content

Commit a22bcbf

Browse files
committed
Show log message to inform user of malformed metadata
1 parent b3914e4 commit a22bcbf

File tree

1 file changed

+2
-0
lines changed
  • src/pip/_internal/metadata/importlib

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ def _find_impl(self, location: str) -> Iterator[FoundResult]:
6868
info_location = get_info_location(dist)
6969
try:
7070
name = get_dist_canonical_name(dist)
71+
distribution = Distribution(dist, info_location, None)
72+
version = distribution.version
7173
except BadMetadata as e:
7274
logger.warning("Skipping %s due to %s", info_location, e.reason)
7375
continue

0 commit comments

Comments
 (0)