Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-02 18:04:04 -05:00
parent 18177f712a
commit 13fe0abccb
+7 -3
View File
@@ -149,10 +149,14 @@ class PyPIRepository(BaseRepository):
if 'extra' not in repr(i.markers):
yield i
if ireq not in self._json_dep_cache:
self._json_dep_cache[ireq] = [g for g in gen()]
try:
if ireq not in self._json_dep_cache:
self._json_dep_cache[ireq] = [g for g in gen()]
return set(self._json_dep_cache[ireq])
except Exception:
return set()
return set(self._json_dep_cache[ireq])
def get_dependencies(self, ireq):
legacy_results = self.get_legacy_dependencies(ireq)