From 1ab402d1214cd208903b311df6678187c347431c Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Fri, 16 Dec 2016 15:54:08 +0000 Subject: [PATCH] Suppress all traceback information - only the exception type and value are printed. --- gprMax/exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gprMax/exceptions.py b/gprMax/exceptions.py index ddc7ed50..b7858487 100644 --- a/gprMax/exceptions.py +++ b/gprMax/exceptions.py @@ -16,10 +16,12 @@ # You should have received a copy of the GNU General Public License # along with gprMax. If not, see . +import sys from colorama import init, Fore init() +sys.tracebacklimit = None class GeneralError(ValueError): """Handles general errors. Subclasses the ValueError class."""