From 221b816ae02dfe5cfc464987c1ff2fb2cd3366f1 Mon Sep 17 00:00:00 2001 From: softwareengineerprogrammer <4056124+softwareengineerprogrammer@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:24:16 -0700 Subject: [PATCH] ...actually print full traceback(?) --- src/geophires_x/AGSOutputs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/geophires_x/AGSOutputs.py b/src/geophires_x/AGSOutputs.py index c54d9a26..5d134de8 100644 --- a/src/geophires_x/AGSOutputs.py +++ b/src/geophires_x/AGSOutputs.py @@ -1,6 +1,8 @@ import datetime import time import sys +import traceback + from .Parameter import ConvertUnitsBack, ConvertOutputUnits from .OptionList import EndUseOptions, EconomicModel from .Units import * @@ -214,7 +216,7 @@ def PrintOutputs(self, model: Model): model.logger.critical(str(ex)) model.logger.critical( "Error: GEOPHIRES Failed to write the output file. Exiting....Line %i" % tb.tb_lineno) - model.logger.critical(f'Traceback: {tb}') + traceback.print_exc() sys.exit() model.logger.info("Complete " + str(__class__) + ": " + sys._getframe().f_code.co_name)