From f204903b79a577b96b672af7bcbdddb8e5fd1cf9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 27 Nov 2009 22:22:04 +0000 Subject: [PATCH] Handle a KeyError in depgraph._ordered_tree_display(), reported on irc by romildo. svn path=/main/trunk/; revision=14901 --- pym/_emerge/depgraph.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index dff0d9a79..cbf6737c7 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4691,7 +4691,11 @@ class depgraph(object): # an argument or a direct member of a set that has # been specified as an argument (system or world). if current_node not in self._dynamic_config._set_nodes: - parent_nodes = mygraph.parent_nodes(current_node) + try: + parent_nodes = mygraph.parent_nodes(current_node) + except KeyError: + # This can happen sometimes for blockers. + pass if parent_nodes: child_nodes = set(mygraph.child_nodes(current_node)) selected_parent = None -- 2.26.2