Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Update error message

Tomas Valenta17d743c175e1
diff --git a/packages/python-sdk/e2b/session/session_connection.py b/packages/python-sdk/e2b/session/session_connection.py
index a01326cd2..6699134d8 100644
--- a/packages/python-sdk/e2b/session/session_connection.py
+++ b/packages/python-sdk/e2b/session/session_connection.py
@@ -80,7 +80,7 @@ class SessionConnection:
:return: hostname of the session or session's port
"""
if not self._session:
- raise Exception("Session is not initialized")
+ raise Exception("Session is not running. You have to run `await session.open()` first or create the session with `await Session.create()")
if self._debug_hostname:
if port and self._debug_dev_env == "remote":