From eadcca6da75a41599dfda3635e64b70d0c44a915 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Sun, 3 Jan 2016 10:03:07 +0100 Subject: [PATCH] Print traceback in case of exception The text of the exception is pretty much useless alone, this makes it print the entire traceback. --- driver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/driver.py b/driver.py index 25fc6b8..628eb16 100755 --- a/driver.py +++ b/driver.py @@ -207,6 +207,7 @@ def run_test(testname): print (colorize('Test passed', COLOR_GREEN)) return True except Exception as inst: + traceback.print_exc(file=sys.stdout) print (inst) pass print (colorize('ERROR', COLOR_RED))