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 26, 2022
1 parent 91b845e commit 469efde
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nbclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,9 @@ async def _check_raise_for_error(
or exec_reply_content.get('ename') in self.allow_error_names
or "raises-exception" in cell.metadata.get("tags", [])
)
await run_hook(self.on_cell_error, cell=cell, cell_index=cell_index, execute_reply=exec_reply)
await run_hook(
self.on_cell_error, cell=cell, cell_index=cell_index, execute_reply=exec_reply
)
if not cell_allows_errors:
raise CellExecutionError.from_cell_and_msg(cell, exec_reply_content)

Expand Down Expand Up @@ -974,7 +976,9 @@ async def async_execute_cell(

if execution_count:
cell['execution_count'] = execution_count
await run_hook(self.on_cell_executed, cell=cell, cell_index=cell_index, execute_reply=exec_reply)
await run_hook(
self.on_cell_executed, cell=cell, cell_index=cell_index, execute_reply=exec_reply
)
await self._check_raise_for_error(cell, cell_index, exec_reply)
self.nb['cells'][cell_index] = cell
return cell
Expand Down

0 comments on commit 469efde

Please sign in to comment.