From eb8547d8bd69c64b4094f646e13e12130f6f0e42 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Wed, 9 Nov 2016 06:56:44 -0500 Subject: [PATCH] Update bst validate challenge (#115) Change Exception to the more specific TypeError. --- graphs_trees/bst_validate/bst_validate_solution.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphs_trees/bst_validate/bst_validate_solution.ipynb b/graphs_trees/bst_validate/bst_validate_solution.ipynb index 3b3dd7b..fbf1258 100644 --- a/graphs_trees/bst_validate/bst_validate_solution.ipynb +++ b/graphs_trees/bst_validate/bst_validate_solution.ipynb @@ -120,7 +120,7 @@ "\n", " def validate(self):\n", " if self.root is None:\n", - " raise Exception('No root node')\n", + " raise TypeError('No root node')\n", " return self._validate(self.root)\n", "\n", " def _validate(self, node, mininum=-sys.maxsize, maximum=sys.maxsize):\n",