ssssam commented on code in PR #1746:
URL: https://github.com/apache/buildstream/pull/1746#discussion_r960609588
##########
src/buildstream/_platform/platform.py:
##########
@@ -44,16 +44,16 @@ def _setup_sandbox(self):
# Try to setup buildbox-run sandbox, otherwise fallback to the dummy
sandbox.
try:
self._check_sandbox(SandboxBuildBoxRun)
- except (SandboxError, utils.ProgramNotFoundError):
+ except (SandboxUnsupportedError, utils.ProgramNotFoundError):
pass
def _check_sandbox(self, Sandbox):
Sandbox._dummy_reasons = []
try:
Sandbox.check_available()
- except SandboxError as Error:
+ except SandboxUnsupportedError as Error:
Review Comment:
Ok, updated based on that feedback. I renamed
SandboxBuildBoxRun.check_available() to `setup()` as that's more correct based
on what it does. I kept it public as, the whole _sandboxbuildboxrun module is
private API, and setup() is called from outside the module. (I may be
misunderstanding how the rules work in Bst though).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]