diff options
Diffstat (limited to 'yaksh/error_messages.py')
-rw-r--r-- | yaksh/error_messages.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yaksh/error_messages.py b/yaksh/error_messages.py index 512d664..f34bf28 100644 --- a/yaksh/error_messages.py +++ b/yaksh/error_messages.py @@ -11,7 +11,10 @@ def prettify_exceptions(exception, message, traceback=None, "traceback": traceback, "message": message } - if exception == 'RuntimeError' or exception == 'RecursionError': + ignore_traceback = ['RuntimeError', 'RecursionError', + "CompilationError", "TestCaseError" + ] + if exception in ignore_traceback: err["traceback"] = None if exception == 'AssertionError': |