Skip to content

Commit 57e4ad3

Browse files
committed
Simplify except in test_exercise
1 parent 2511b67 commit 57e4ad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonwhat/test_exercise.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pythonwhat.sct_syntax import Ex, get_chains
44
from pythonwhat.utils import check_str, check_process
55
from protowhat.Reporter import Reporter
6-
from protowhat.failure import TestFail, InstructorError
6+
from protowhat.failure import Failure, InstructorError
77
from pythonwhat.utils import include_v1
88

99

@@ -61,7 +61,7 @@ def test_exercise(
6161
for test in tree.crnt_node:
6262
test(state)
6363

64-
except (TestFail, InstructorError) as e:
64+
except Failure as e:
6565
if isinstance(e, InstructorError):
6666
# TODO: decide based on context
6767
raise e

0 commit comments

Comments
 (0)