Fix error string interpolation

The values were not correctly being interpolated
into the value error that is thrown when merging
graphs together and they have overlapping nodes.

Fix this by correctly interpolating and expanding
the messaging/reason why we do not support
overlapping graphs.

Change-Id: Iff29f793c7dfd6b39a4936c7f4f31fd660262ca6
This commit is contained in:
Joshua Harlow
2014-05-22 12:18:41 -07:00
committed by Thomas Goirand
parent c05e50446a
commit 7166a2a10d

View File

@@ -113,7 +113,8 @@ def merge_graphs(graphs, allow_overlaps=False):
overlaps = graph.subgraph(g.nodes_iter())
if len(overlaps):
raise ValueError("Can not merge graph %s into %s since there "
"are %s overlapping nodes" (g, graph,
"are %s overlapping nodes (and we do not "
"support merging nodes)" % (g, graph,
len(overlaps)))
# Keep the target graphs name.
name = graph.name