Skip to content

Commit

Permalink
attempt fix for # fix for python-poetry#3628
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-hykin authored Mar 4, 2022
1 parent 0b8ef3a commit de0cd22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/poetry/repositories/installed_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ def load(cls, env: Env, with_dependencies: bool = False) -> InstalledRepository:
metadata.distributions(path=[entry]),
key=lambda d: str(d._path),
):
# fix for https://github.com/python-poetry/poetry/issues/3628
if distribution.metadata["name"] is None:
continue
name = canonicalize_name(distribution.metadata["name"])

if name in seen:
Expand Down

0 comments on commit de0cd22

Please sign in to comment.