From 2791958f9af478854528b4cfce5fb8ffd945134c Mon Sep 17 00:00:00 2001 From: Isidro Arias Date: Sat, 3 Jun 2023 20:21:23 +0200 Subject: [PATCH] fixing ruff EM102 --- data_structures/binary_tree/binary_search_tree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data_structures/binary_tree/binary_search_tree.py b/data_structures/binary_tree/binary_search_tree.py index 1c29b3836..eca99e53f 100644 --- a/data_structures/binary_tree/binary_search_tree.py +++ b/data_structures/binary_tree/binary_search_tree.py @@ -180,7 +180,8 @@ class BinarySearchTree: # Look for the node with that label node = self.search(value) if node is None: - raise ValueError(f"Value {value} not found") + msg = f"Value {value} not found" + raise ValueError(msg) if node.left is None and node.right is None: # If it has no children self.__reassign_nodes(node, None)