Commit cdce87ad authored by Runar Borge's avatar Runar Borge
Browse files

Fixes #12 Missing variables on string formatting

In the "No valid path" strings it prints %s instead of node names
parent 35eb131f
......@@ -942,7 +942,7 @@ class MetricShell(Cmd):
length, paths = self.simulation.path(a,b)
if not length and not paths:
print("No valid path from %s to %s in model")
print("No valid path from %s to %s in model" % (a,b))
return
print("Path from %s to %s:"\
......@@ -1129,7 +1129,7 @@ class MetricShell(Cmd):
length, paths = self.model.path(a,b)
if not length and not paths:
print("No valid path from %s to %s in model")
print("No valid path from %s to %s in model" % (a,b))
return
print("Path from %s to %s:"\
......
Markdown is supported
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