From bda36081a95d4dfb2e37ae88be0446364f79a639 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 5 May 2017 17:16:07 +0200 Subject: [PATCH] Fix AttributeError: 'NoneType' object has no attribute 'send' Fix #1014 --- gns3server/compute/dynamips/nodes/bridge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/dynamips/nodes/bridge.py b/gns3server/compute/dynamips/nodes/bridge.py index 4b76d2c7..b37ae5d8 100644 --- a/gns3server/compute/dynamips/nodes/bridge.py +++ b/gns3server/compute/dynamips/nodes/bridge.py @@ -103,8 +103,8 @@ class Bridge(Device): :param nio: NIO instance to remove """ - - yield from self._hypervisor.send('nio_bridge remove_nio "{name}" {nio}'.format(name=self._name, nio=nio)) + if self._hypervisor: + yield from self._hypervisor.send('nio_bridge remove_nio "{name}" {nio}'.format(name=self._name, nio=nio)) self._nios.remove(nio) @property