Skip to content

Commit 6efc993

Browse files
committed
Fix python tests
1 parent d7a5785 commit 6efc993

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/e2b_code_interpreter/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def exec_cell(
9393
ws = ws_future.result(timeout=timeout)
9494
else:
9595
logger.debug(f"Creating new websocket connection to kernel {kernel_id}")
96-
ws = self._connect_to_kernel_ws(kernel_id, timeout=timeout)
96+
ws = self._connect_to_kernel_ws(kernel_id, None, timeout=timeout)
9797

9898
message_id = ws.send_execution_message(code, on_stdout, on_stderr, on_result)
9999
logger.debug(
@@ -190,7 +190,7 @@ def restart_kernel(
190190
logger.debug(f"Restarted kernel {kernel_id}")
191191

192192
threading.Thread(
193-
target=self._connect_to_kernel_ws, args=(kernel_id, timeout)
193+
target=self._connect_to_kernel_ws, args=(kernel_id, None, timeout)
194194
).start()
195195

196196
def shutdown_kernel(

0 commit comments

Comments
 (0)