We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efe0034 commit 6dbd4abCopy full SHA for 6dbd4ab
src/geophires_x/AGSOutputs.py
@@ -222,12 +222,12 @@ def PrintOutputs(self, model: Model):
222
223
except BaseException as ex:
224
tb = sys.exc_info()[2]
225
+ msg = "Error: GEOPHIRES Failed to write the output file. Exiting....Line %i" % tb.tb_lineno
226
print(str(ex))
- print("Error: GEOPHIRES Failed to write the output file. Exiting....Line %i" % tb.tb_lineno)
227
+ print(msg)
228
model.logger.critical(str(ex))
- model.logger.critical(
229
- "Error: GEOPHIRES Failed to write the output file. Exiting....Line %i" % tb.tb_lineno)
+ model.logger.critical(msg)
230
traceback.print_exc()
231
- sys.exit()
+ raise RuntimeError(msg)
232
233
model.logger.info(f'Complete {str(__class__)}: {sys._getframe().f_code.co_name}')
0 commit comments