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:
1 parent
d62a6f107b
commit
cf9a7235f7
1 file changed
+2
-4
@@ -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