fix(computer): return none for unsupported browser capability
set the base booter browser property to return None instead of raising NotImplementedError so callers can handle missing browser support through capability checks
This commit is contained in:
@@ -17,10 +17,8 @@ class ComputerBooter:
|
||||
def shell(self) -> ShellComponent: ...
|
||||
|
||||
@property
|
||||
def browser(self) -> BrowserComponent:
|
||||
raise NotImplementedError(
|
||||
f"{self.__class__.__name__} does not support browser capability."
|
||||
)
|
||||
def browser(self) -> BrowserComponent | None:
|
||||
return None
|
||||
|
||||
async def boot(self, session_id: str) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user