Update bst validate challenge (#115)

Change Exception to the more specific TypeError.
This commit is contained in:
Donne Martin 2016-11-09 06:56:44 -05:00 committed by GitHub
parent 0098574a47
commit eb8547d8bd

View File

@ -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",