Skip to content

Commit

Permalink
Handle KeyErrors when resolving pipenv into the environment
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
  • Loading branch information
techalchemy committed Apr 23, 2020
1 parent d33537a commit 6a53d5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipenv/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def resolve_dist(cls, dist, working_set):
deps.add(dist)
try:
reqs = dist.requires()
except (AttributeError, OSError, IOError): # The METADATA file can't be found
# KeyError = limited metadata can be found
except (KeyError, AttributeError, OSError, IOError): # The METADATA file can't be found
return deps
for req in reqs:
dist = working_set.find(req)
Expand Down

0 comments on commit 6a53d5c

Please sign in to comment.