Skip to content

Commit 11b49ff

Browse files
RuntimeError instead of sys.exit in OutputsAddOns.py
1 parent 8dfa6c8 commit 11b49ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geophires_x/OutputsAddOns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def PrintOutputs(self, model) -> tuple:
114114
print(err_msg)
115115
model.logger.critical(str(ex))
116116
model.logger.critical(err_msg)
117-
sys.exit()
117+
raise RuntimeError(err_msg) from ex
118118

119119
model.logger.info(f'Complete {str(__class__)}: {__name__}')
120120

0 commit comments

Comments
 (0)