We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d6a5d1 commit aae27bbCopy full SHA for aae27bb
1 file changed
myst_nb/core/execute/cache.py
@@ -80,12 +80,12 @@ def start_client(self):
80
# handle success / failure cases
81
# TODO do in try/except to be careful (in case of database write errors?
82
if result.err is not None:
83
- if self.nb_config.execution_raise_on_error:
84
- raise ExecutionError(str(self.path)) from result.err
85
msg = f"Executing notebook failed: {result.err.__class__.__name__}"
86
if self.nb_config.execution_show_tb:
87
msg += f"\n{result.exc_string}"
88
self.logger.warning(msg, subtype="exec")
+ if self.nb_config.execution_raise_on_error:
+ raise ExecutionError(str(self.path)) from result.err
89
NbProjectRecord.set_traceback(stage_record.uri, result.exc_string, cache.db)
90
else:
91
self.logger.info(f"Executed notebook in {result.time:.2f} seconds")
0 commit comments