mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Do not crash when you broke permission on your file system during
execution Fix #878
This commit is contained in:
1 file changed
+5
-2
@@ -643,8 +643,11 @@ class Project:
|
||||
# We don't care if a compute is down at this step
|
||||
except (ComputeError, aiohttp.web.HTTPNotFound, aiohttp.web.HTTPConflict):
|
||||
pass
|
||||
if os.path.exists(path + ".backup"):
|
||||
shutil.copy(path + ".backup", path)
|
||||
try:
|
||||
if os.path.exists(path + ".backup"):
|
||||
shutil.copy(path + ".backup", path)
|
||||
except (PermissionError, OSError):
|
||||
pass
|
||||
self._status = "closed"
|
||||
self._loading = False
|
||||
raise e
|
||||
|
||||
Reference in new issue
Block a user