Fix cannot recreate a deleted project

Fix #1539
pull/712/head
Julien Duponchelle 8 years ago
parent 41f12457e7
commit 87e2326363
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

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

Loading…
Cancel
Save