From 5639cbe8601c51b125f1efc86e52075e922c0b41 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 13 Feb 2017 15:24:22 +0100 Subject: [PATCH] Fix a rare crash when closing a project Fix #900 --- gns3server/controller/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index 581a9897..d0726713 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -367,7 +367,8 @@ class Controller: return project def remove_project(self, project): - del self._projects[project.id] + if project.id in self._projects: + del self._projects[project.id] @asyncio.coroutine def load_project(self, path, load=True):