Skip to content

Commit 714bd25

Browse files
committed
Merge branch 'main' into session-schema-improvements
2 parents 372e88c + 7a4a22f commit 714bd25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agents/extensions/memory/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ def __getattr__(name: str) -> Any:
3939
"SQLAlchemySession requires the 'sqlalchemy' extra. "
4040
"Install it with: pip install openai-agents[sqlalchemy]"
4141
) from e
42+
4243
if name == "AdvancedSQLiteSession":
4344
try:
4445
from .advanced_sqlite_session import AdvancedSQLiteSession # noqa: F401
4546

4647
return AdvancedSQLiteSession
4748
except ModuleNotFoundError as e:
4849
raise ImportError(
49-
"AdvancedSQLiteSession requires the 'aiosqlite' extra. "
50-
"Install it with: pip install openai-agents[aiosqlite]"
50+
f"Failed to import AdvancedSQLiteSession: {e}"
5151
) from e
5252

5353
raise AttributeError(f"module {__name__} has no attribute {name}")

0 commit comments

Comments
 (0)