Skip to content
Snippets Groups Projects
Commit 3d1595e1 authored by James Ennis's avatar James Ennis Committed by Phillip Smyth
Browse files

_platform/linux.py: Ensure exception is not raised when performing sandbox availability check

parent 54e27fb3
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,10 @@ class Linux(Platform):
# Private Methods #
################################################
def _local_sandbox_available(self):
return os.path.exists(utils.get_host_tool('bwrap')) and os.path.exists('/dev/fuse')
try:
return os.path.exists(utils.get_host_tool('bwrap')) and os.path.exists('/dev/fuse')
except utils.ProgramNotFoundError:
return False
def _check_user_ns_available(self, context):
# Here, lets check if bwrap is able to create user namespaces,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment