1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix crash when handling an error in project creation

Fix #928
This commit is contained in:
Julien Duponchelle 2017-03-13 16:55:35 +01:00
parent 5e2b619305
commit 9ef334331e
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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))