tracks/python/exercises/pov/example.py in trackler-2.2.1.74 vs tracks/python/exercises/pov/example.py in trackler-2.2.1.75

- old
+ new

@@ -51,20 +51,20 @@ visited.add(tree.label) if from_node == tree.label: return tree for child in tree.children: stack.append(child.add(tree.remove(child.label))) - raise ValueError() + raise ValueError("Tree could not be reoriented") def pathTo(self, from_node, to_node): reordered = self.fromPov(from_node) stack = reordered.children path = [from_node] while path[-1] != to_node: try: tree = stack.pop() except IndexError: - raise ValueError() + raise ValueError("No path found") if to_node in tree: path.append(tree.label) stack = tree.children return path