Fix a crash when you broke permission on your file system

Fix #879
This commit is contained in:
Julien Duponchelle 2017-01-27 10:49:57 +01:00
parent d99ec92210
commit 8ff7670031
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -171,7 +171,7 @@ class Hypervisor(UBridgeHypervisor):
env=env)
log.info("ubridge started PID={}".format(self._process.pid))
except (OSError, subprocess.SubprocessError) as e:
except (OSError, PermissionError, subprocess.SubprocessError) as e:
ubridge_stdout = self.read_stdout()
log.error("Could not start ubridge: {}\n{}".format(e, ubridge_stdout))
raise UBridgeHypervisor("Could not start ubridge: {}\n{}".format(e, ubridge_stdout))