Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix handler's type in terminal module in Python SDK

Jakub Novak26f1f43ebde7
diff --git a/packages/python-sdk/e2b/sandbox/terminal.py b/packages/python-sdk/e2b/sandbox/terminal.py
index c2af52bd8..806556c5b 100644
--- a/packages/python-sdk/e2b/sandbox/terminal.py
+++ b/packages/python-sdk/e2b/sandbox/terminal.py
@@ -188,7 +188,7 @@ class TerminalManager:
),
SubscriptionArgs(
service=self._service_name,
- handler=future_exit,
+ handler=lambda result: future_exit.set_result(result),
method="onExit",
params=[terminal_id],
),