From 31ed2a4c963943a66a46b41d4b9ae7355c0244a6 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 16 Mar 2017 12:05:30 +0100 Subject: [PATCH] Fix ComputeError: Can't connect to Main server Fix #942 --- gns3server/controller/project.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/project.py b/gns3server/controller/project.py index c6caa7bf..67d989cb 100644 --- a/gns3server/controller/project.py +++ b/gns3server/controller/project.py @@ -663,7 +663,10 @@ class Project: pass self._status = "closed" self._loading = False - raise e + if isinstance(e, ComputeError): + raise aiohttp.web.HTTPConflict(text=str(e)) + else: + raise e try: os.remove(path + ".backup") except OSError: