From 89bbe0ef1bbf0e5b03ba46b2838dec6aec7c73a4 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 15 Nov 2016 18:15:41 +0100 Subject: [PATCH] Fix stack when looking for GNS3 VM with player installed Fix #778 --- gns3server/controller/gns3vm/vmware_gns3_vm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gns3server/controller/gns3vm/vmware_gns3_vm.py b/gns3server/controller/gns3vm/vmware_gns3_vm.py index 927fc95e..9af65a69 100644 --- a/gns3server/controller/gns3vm/vmware_gns3_vm.py +++ b/gns3server/controller/gns3vm/vmware_gns3_vm.py @@ -90,8 +90,10 @@ class VMwareGNS3VM(BaseGNS3VM): """ List all VMware VMs """ - - return (yield from self._vmware_manager.list_vms()) + try: + return (yield from self._vmware_manager.list_vms()) + except VMwareError as e: + raise GNS3VMError("Could not list VMware VMs: {}".format(str(e))) @asyncio.coroutine def start(self):