Skip to content

Commit 4aa4a1a

Browse files
committed
Prevent type error for incorrect usage
1 parent 8f21dad commit 4aa4a1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythonwhat/checks/has_funcs.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ def verify(part, index):
4141
if part is None:
4242
raise KeyError
4343

44-
# Chceck if it's there in the solution
45-
err_msg = "SCT fails on solution: " + msg
44+
# TODO: instructor error if msg is not str
45+
# Check if it's there in the solution
4646
try:
4747
verify(state.solution_parts[name], index)
4848
except (KeyError, IndexError):
4949
with debugger(state):
50+
err_msg = "SCT fails on solution: {}".format(msg)
5051
state.report(err_msg, d)
5152

5253
try:

0 commit comments

Comments
 (0)