Update tree bfs challenge (#127)

Switch from Exception to TypeError
This commit is contained in:
Donne Martin 2016-12-01 06:29:08 -05:00 committed by GitHub
parent a88f0a0b0b
commit 385bc54efa

View File

@ -101,7 +101,7 @@
"\n",
" def bfs(self, visit_func):\n",
" if self.root is None:\n",
" raise Exception('root is None')\n",
" raise TypeError('root is None')\n",
" queue = deque()\n",
" queue.append(self.root)\n",
" while queue:\n",