Skip to content

Commit

Permalink
Fix the assumption that all sources are named
Browse files Browse the repository at this point in the history
reemergence of #5004
  • Loading branch information
TurnrDev authored and oz123 committed Oct 14, 2024
1 parent e33fb70 commit 997d7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipenv/utils/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,6 @@ def resolve_deps(
@lru_cache
def get_pipenv_sitedir() -> Optional[str]:
for dist in importlib_metadata.distributions():
if dist.metadata["Name"].lower() == "pipenv":
if dist.metadata.get("Name","").lower() == "pipenv":
return str(dist.locate_file(""))
return None

0 comments on commit 997d7e8

Please sign in to comment.