Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Changes timeout exception format (#778)

Mish Ushakov96f8c64b6f5c
diff --git a/.changeset/curvy-badgers-compete.md b/.changeset/curvy-badgers-compete.md
new file mode 100644
index 000000000..0cf8e5fe8
--- /dev/null
+++ b/.changeset/curvy-badgers-compete.md
@@ -0,0 +1,5 @@
+---
+'@e2b/python-sdk': patch
+---
+
+changes timeout exception formatter
diff --git a/packages/python-sdk/e2b/exceptions.py b/packages/python-sdk/e2b/exceptions.py
index b0710ac06..ad162048e 100644
--- a/packages/python-sdk/e2b/exceptions.py
+++ b/packages/python-sdk/e2b/exceptions.py
@@ -1,6 +1,6 @@
def format_sandbox_timeout_exception(message: str):
return TimeoutException(
- f"{message}: This error is likely due to sandbox timeout. You can modify the sandbox timeout by passing 'timeoutMs' when starting the sandbox or calling '.setTimeout' on the sandbox with the desired timeout."
+ f"{message}: This error is likely due to sandbox timeout. You can modify the sandbox timeout by passing 'timeout' when starting the sandbox or calling '.set_timeout' on the sandbox with the desired timeout."
)