Fix missing app initialization in skyvern init (#4038)

This commit is contained in:
Stanislav Novosad
2025-11-19 17:25:33 -07:00
committed by GitHub
parent 895d553d0e
commit d5a7485d45
4 changed files with 9 additions and 7 deletions

View File

@@ -17,14 +17,14 @@ class AppHolder:
def __getattr__(self, name: str) -> Any:
inst = object.__getattribute__(self, "_inst")
if inst is None:
raise RuntimeError("ForgeApp is not initialized, start_forge_app should be called")
raise RuntimeError("ForgeApp is not initialized. Call start_forge_app() before accessing app properties.")
return getattr(inst, name)
def __setattr__(self, name: str, value: Any) -> None:
inst = object.__getattribute__(self, "_inst")
if inst is None:
raise RuntimeError("ForgeApp is not initialized, start_forge_app should be called")
raise RuntimeError("ForgeApp is not initialized. Call start_forge_app() before accessing app properties.")
setattr(inst, name, value)