Commit 6a3e549f authored by Daniel Brown's avatar Daniel Brown
Browse files

adding in check for no path

parent 077834d3
......@@ -12,6 +12,9 @@ def plot_beam_trace(_kat, from_node, to_node):
components = kat.nodes.getComponentsBetween(from_node, to_node)
if len(components) == 0:
raise pkex.BasePyKatException('Could not find a direct path between nodes %s and %s'%(from_node, to_node))
nodes = []
for cn in range(len(components)):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment