Skip to content

Commit fb2285a

Browse files
committed
Fixed tox issues
1 parent b3a9169 commit fb2285a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

nbclient/client.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,10 @@ async def async_wait_for_reply(self, msg_id, cell=None):
569569
cummulative_time = 0
570570
while True:
571571
try:
572-
msg = await await_or_block(self.kc.shell_channel.get_msg, timeout=self.shell_timeout_interval)
572+
msg = await await_or_block(
573+
self.kc.shell_channel.get_msg,
574+
timeout=self.shell_timeout_interval
575+
)
573576
except Empty:
574577
await self._async_check_alive()
575578
cummulative_time += self.shell_timeout_interval
@@ -649,8 +652,11 @@ async def async_execute_cell(self, cell, cell_index, execution_count=None, store
649652
cell['metadata']['execution'] = {}
650653

651654
self.log.debug("Executing cell:\n%s", cell.source)
652-
parent_msg_id = await await_or_block(self.kc.execute,
653-
cell.source, store_history=store_history, stop_on_error=not self.allow_errors
655+
parent_msg_id = await await_or_block(
656+
self.kc.execute,
657+
cell.source,
658+
store_history=store_history,
659+
stop_on_error=not self.allow_errors
654660
)
655661
# We launched a code cell to execute
656662
self.code_cells_executed += 1

0 commit comments

Comments
 (0)