diff options
Diffstat (limited to 'python/problems/introduction/pythagorean_theorem/common.py')
-rw-r--r-- | python/problems/introduction/pythagorean_theorem/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/problems/introduction/pythagorean_theorem/common.py b/python/problems/introduction/pythagorean_theorem/common.py index 800107e..7a232c1 100644 --- a/python/problems/introduction/pythagorean_theorem/common.py +++ b/python/problems/introduction/pythagorean_theorem/common.py @@ -65,9 +65,9 @@ def hint(python, code): # if have an exception! if exc: if 'NameError' in exc: - return [{'id':'name_error', 'args': {'exception': exc}}] + return [{'id':'name_error', 'args': {'message': exc}}] if 'unsupported operand' in exc or 'TypeError' in exc: - return [{'id':'unsupported_operand', 'args': {'exception': exc}}] + return [{'id':'unsupported_operand', 'args': {'message': exc}}] # show plan if student is lost if len(code.strip()) < 5 or (not has_token_sequence(code, ['input']) and |