Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 2, 2024
1 parent ae31f07 commit 1691811
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion papermill/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ def raise_for_execution_errors(nb, output_path):
break

# handle the CellExecutionError exceptions raised that didn't produce a cell error output
if error is None and not has_sys_exit and cell.get("metadata", {}).get("papermill", {}).get("exception") is True:
if (
error is None
and not has_sys_exit
and cell.get("metadata", {}).get("papermill", {}).get("exception") is True
):
error = PapermillExecutionError(
cell_index=index,
exec_count=cell.execution_count,
Expand Down

0 comments on commit 1691811

Please sign in to comment.