summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yaksh/grader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/grader.py b/yaksh/grader.py
index db15e59..41b3ac1 100644
--- a/yaksh/grader.py
+++ b/yaksh/grader.py
@@ -147,8 +147,8 @@ class Grader(object):
test_case_success, err, mark_fraction = test_case_instance.check_code()
if test_case_success:
weight += mark_fraction
-
- error.append(err)
+ else:
+ error.append(err)
test_case_success_status[idx] = test_case_success
success = all(test_case_success_status)