From 9ef334331e5e487b4ce1ed099583e52784e77d86 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 13 Mar 2017 16:55:35 +0100 Subject: [PATCH] Fix crash when handling an error in project creation Fix #928 --- gns3server/compute/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/project.py b/gns3server/compute/project.py index adcecffb..34401f82 100644 --- a/gns3server/compute/project.py +++ b/gns3server/compute/project.py @@ -74,7 +74,7 @@ class Project: try: if os.path.exists(self.tmp_working_directory()): shutil.rmtree(self.tmp_working_directory()) - except OSError: + except OSError as e: raise aiohttp.web.HTTPInternalServerError(text="Could not clean project directory: {}".format(e)) log.info("Project {id} with path '{path}' created".format(path=self._path, id=self._id))