Skip to content

Commit

Permalink
...actually print full traceback(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
softwareengineerprogrammer committed Oct 4, 2023
1 parent ed1f445 commit 221b816
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/geophires_x/AGSOutputs.py
Original file line number Diff line number Diff line change
@@ -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 *
Expand Down Expand Up @@ -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)

0 comments on commit 221b816

Please sign in to comment.