summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util/digraph.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/util/digraph.py b/pym/portage/util/digraph.py
index 97f9c99b2..2849b8e2c 100644
--- a/pym/portage/util/digraph.py
+++ b/pym/portage/util/digraph.py
@@ -310,6 +310,8 @@ class digraph(object):
shortest_path = None
for child in self.child_nodes(node, ignore_priority):
path = self.shortest_path(child, node, ignore_priority)
+ if path is None:
+ continue
if not shortest_path or len(shortest_path) > len(path):
shortest_path = path
if shortest_path: