From 57cdef6b020a91fdeb9c954a1fa36a5284c69f09 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 14 Apr 2017 10:33:19 +0200 Subject: [PATCH] Fix AttributeError: 'NoneType' object has no attribute 'returncode' Fix #976 --- gns3server/ubridge/hypervisor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/ubridge/hypervisor.py b/gns3server/ubridge/hypervisor.py index 1e6ae825..9deb7b83 100644 --- a/gns3server/ubridge/hypervisor.py +++ b/gns3server/ubridge/hypervisor.py @@ -199,7 +199,7 @@ class Hypervisor(UBridgeHypervisor): try: yield from wait_for_process_termination(self._process, timeout=3) except asyncio.TimeoutError: - if self._process.returncode is None: + if self._process and self._process.returncode is None: log.warn("uBridge process {} is still running... killing it".format(self._process.pid)) try: self._process.kill()