Catch exception: ZIP does not support timestamps before 1980. Ref #1360.

This commit is contained in:
grossmj committed 2018-07-26 13:34:23 -05:00
1 parent e20e885d44
commit d0ed6931d8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -931,7 +931,7 @@ class Project:
yield from wait_run_in_executor(self._create_duplicate_project_file, project_path, zipstream)
with open(project_path, "rb") as f:
project = yield from import_project(self._controller, str(uuid.uuid4()), f, location=location, name=name, keep_compute_id=True)
except (OSError, UnicodeEncodeError) as e:
except (ValueError, OSError, UnicodeEncodeError) as e:
raise aiohttp.web.HTTPConflict(text="Can not duplicate project: {}".format(str(e)))
if previous_status == "closed":