1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-12 09:00:57 +00:00

Fix cannot recreate a deleted project

Fix #1539
This commit is contained in:
Julien Duponchelle 2016-09-23 10:22:33 +02:00
parent 41f12457e7
commit 87e2326363
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -535,6 +535,9 @@ class Project:
Delete unused images
"""
# Project have been deleted
if not os.path.exists(self.path):
return
try:
pictures = set(os.listdir(self.pictures_directory))
for drawing in self._drawings.values():