Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Fix optional deadline

Tomas Valenta8c581e9604cf
diff --git a/packages/python-sdk/connect/client.py b/packages/python-sdk/connect/client.py
index cec29860f..c7d87c796 100644
--- a/packages/python-sdk/connect/client.py
+++ b/packages/python-sdk/connect/client.py
@@ -173,7 +173,7 @@ class Client:
)
def _create_stream_timeout(self, timeout: Optional[int]):
- if timeout is not None:
+ if timeout:
return {"connect-timeout-ms": str(timeout * 1000)}
return {}