diff options
Diffstat (limited to 'python/problems/introduction/fast_fingers_2/common.py')
-rw-r--r-- | python/problems/introduction/fast_fingers_2/common.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/python/problems/introduction/fast_fingers_2/common.py b/python/problems/introduction/fast_fingers_2/common.py index 958940d..386e251 100644 --- a/python/problems/introduction/fast_fingers_2/common.py +++ b/python/problems/introduction/fast_fingers_2/common.py @@ -31,9 +31,6 @@ random.randint = lambda x, y: {} hint_type = { 'random': Hint('random'), - 'name_error': Hint('name_error'), - 'type_error': Hint('type_error'), - 'error': Hint('error'), 'if_clause': Hint('if_clause'), 'final_hint': Hint('final_hint') } @@ -91,13 +88,7 @@ def hint(python, code): exc = answer[0][3] exc_hint = get_exception_desc(answer[0][3]) # if have an exception! - if exc: - if 'NameError' in exc: - return [{'id':'name_error', 'args': {'message': exc}}] - elif 'TypeError' in exc: - return [{'id':'type_error', 'args': {'message': exc}}] - else: - return exc_hint + return exc_hint # First: if student does not import random, tell him about that module if not has_token_sequence(tokens, ['random']) or \ |