Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Set default domain even if the env variable is an empty string (#813)

Jakub Novák10aab1d7d677
diff --git a/.changeset/happy-pens-fetch.md b/.changeset/happy-pens-fetch.md
new file mode 100644
index 000000000..710bc98a1
--- /dev/null
+++ b/.changeset/happy-pens-fetch.md
@@ -0,0 +1,5 @@
+---
+'@e2b/python-sdk': patch
+---
+
+Set default domain even if the env variable is an empty string
diff --git a/packages/python-sdk/e2b/connection_config.py b/packages/python-sdk/e2b/connection_config.py
index 1d72581a4..232860f43 100644
--- a/packages/python-sdk/e2b/connection_config.py
+++ b/packages/python-sdk/e2b/connection_config.py
@@ -16,7 +16,7 @@ class ConnectionConfig:
@staticmethod
def _domain():
- return os.getenv("E2B_DOMAIN", "e2b.app")
+ return os.getenv("E2B_DOMAIN") or "e2b.app"
@staticmethod
def _debug():
@@ -78,6 +78,7 @@ class ConnectionConfig:
def get_request_timeout(self, request_timeout: Optional[float] = None):
return self._get_request_timeout(self.request_timeout, request_timeout)
+
Username = Literal["root", "user"]
"""
User used for the operation in the sandbox.