summaryrefslogtreecommitdiff
path: root/yaksh/python_assertion_evaluator.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/python_assertion_evaluator.py')
-rw-r--r--yaksh/python_assertion_evaluator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/python_assertion_evaluator.py b/yaksh/python_assertion_evaluator.py
index 04a4e69..b9f0a55 100644
--- a/yaksh/python_assertion_evaluator.py
+++ b/yaksh/python_assertion_evaluator.py
@@ -49,6 +49,8 @@ class PythonAssertionEvaluator(CodeEvaluator):
err = "{0} {1} in: {2}".format(type.__name__, str(value), text)
except TimeoutException:
raise
+ except Exception:
+ raise # Exception will be caught in CodeEvaluator.
else:
success = True
err = 'Correct answer'