Fix challenge notebook exception handling (#202)

This commit is contained in:
Arkady Telegin 2017-07-09 03:50:26 +04:00 committed by Donne Martin
parent ba3fb473b1
commit 8f728dd52d

View File

@ -132,7 +132,7 @@
" test.test_add_digits(solution.add_digits)\n",
" try:\n",
" test.test_add_digits(solution.add_digits_optimized)\n",
" except NameError:\n",
" except AttributeError:\n",
" # Alternate solutions are only defined\n",
" # in the solutions file\n",
" pass\n",