diff options
author | maheshgudi | 2017-11-10 16:50:54 +0530 |
---|---|---|
committer | maheshgudi | 2017-11-10 16:50:54 +0530 |
commit | 95f862caee8ca6077ee8f9a8fc88d9ca44db1cdf (patch) | |
tree | 80fb17501e7995ed3abb34ac3b0d62dd8decc560 /yaksh/error_messages.py | |
parent | 4d5e801efff62ee63538e3c787ab74e6503e3d74 (diff) | |
download | online_test-95f862caee8ca6077ee8f9a8fc88d9ca44db1cdf.tar.gz online_test-95f862caee8ca6077ee8f9a8fc88d9ca44db1cdf.tar.bz2 online_test-95f862caee8ca6077ee8f9a8fc88d9ca44db1cdf.zip |
Remove traceback for recursion and/or runtime errors.
Diffstat (limited to 'yaksh/error_messages.py')
-rw-r--r-- | yaksh/error_messages.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/error_messages.py b/yaksh/error_messages.py index 77bb1c9..7ea8618 100644 --- a/yaksh/error_messages.py +++ b/yaksh/error_messages.py @@ -9,8 +9,9 @@ def prettify_exceptions(exception, message, traceback=None, testcase=None): "traceback": traceback, "message": message } - if traceback and traceback.count('\n') > 6: + if exception == 'RuntimeError' or exception == 'RecursionError': err["traceback"] = None + if exception == 'AssertionError': value = ("Expected answer from the" + " test case did not match the output") |