From 179372936e44b34c1d1f196a84052e5e58d548dc Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 22 Jan 2016 10:07:55 +0100 Subject: [PATCH] Raise error if ubridge is missing --- gns3server/modules/base_vm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gns3server/modules/base_vm.py b/gns3server/modules/base_vm.py index 2c93860c..5775182f 100644 --- a/gns3server/modules/base_vm.py +++ b/gns3server/modules/base_vm.py @@ -308,6 +308,9 @@ class BaseVM: path = self._manager.config.get_section_config("Server").get("ubridge_path", "ubridge") if path == "ubridge": path = shutil.which("ubridge") + + if path is None: + raise VMError("uBridge is not installed") return path @asyncio.coroutine