From 8f728dd52df1a766313db42188b4405de3dd4891 Mon Sep 17 00:00:00 2001 From: Arkady Telegin Date: Sun, 9 Jul 2017 03:50:26 +0400 Subject: [PATCH] Fix challenge notebook exception handling (#202) --- math_probability/add_digits/add_digits_challenge.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math_probability/add_digits/add_digits_challenge.ipynb b/math_probability/add_digits/add_digits_challenge.ipynb index faee03a..6fbdabd 100644 --- a/math_probability/add_digits/add_digits_challenge.ipynb +++ b/math_probability/add_digits/add_digits_challenge.ipynb @@ -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",