Skip to content
Snippets Groups Projects
Commit 6a3e549f authored by Daniel Brown's avatar Daniel Brown
Browse files

adding in check for no path

parent 077834d3
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,9 @@ def plot_beam_trace(_kat, from_node, to_node): ...@@ -12,6 +12,9 @@ def plot_beam_trace(_kat, from_node, to_node):
components = kat.nodes.getComponentsBetween(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 = [] nodes = []
for cn in range(len(components)): for cn in range(len(components)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment