mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Do not prevent a project to be deleted. Fixes #2237.
This commit is contained in:
1 parent
b538bd0a29
commit
4a2dfb0037
2 files changed
+8
-3
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user