From 6a53d5c593c133c6295a2c062d785b0dc745843d Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Thu, 23 Apr 2020 17:39:04 -0400 Subject: [PATCH] Handle KeyErrors when resolving pipenv into the environment Signed-off-by: Dan Ryan --- pipenv/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipenv/environment.py b/pipenv/environment.py index 65e7188da4..7538ea9efa 100644 --- a/pipenv/environment.py +++ b/pipenv/environment.py @@ -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)