Do not prevent a project to be deleted. Fixes #2237.

This commit is contained in:
grossmj committed 2017-09-06 18:12:22 +07:00
1 parent b538bd0a29
commit 4a2dfb0037
2 files changed
+8 -3

No files matched your search

+6 -1
View File
@@ -680,8 +680,13 @@ class Project:
@asyncio.coroutine
def delete(self):
if self._status != "opened":
yield from self.open()
try:
yield from self.open()
except aiohttp.web.HTTPConflict as e:
# ignore missing images or other conflicts when deleting a project
log.warning("Conflict while deleting project: {}".format(e.text))
yield from self.delete_on_computes()
yield from self.close()
try: