Skip to content

Commit

Permalink
Update src/textual/widgets/_tree.py
Browse files Browse the repository at this point in the history
Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
  • Loading branch information
willmcgugan and darrenburns authored Sep 25, 2024
1 parent a8ad566 commit 514e12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/widgets/_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ def move_cursor_to_line(self, line: int, animate=False) -> None:
try:
node = self._tree_lines[line].node
except IndexError:
raise IndexError("No line no. {line} in the tree")
raise IndexError(f"No line no. {line} in the tree")
self.move_cursor(node, animate=animate)

def select_node(self, node: TreeNode[TreeDataType] | None) -> None:
Expand Down

0 comments on commit 514e12b

Please sign in to comment.