mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Do not crash when you broke permission on your file system during
execution Fix #878
This commit is contained in:
parent
8ff7670031
commit
267a5ae3a8
@ -643,8 +643,11 @@ class Project:
|
|||||||
# We don't care if a compute is down at this step
|
# We don't care if a compute is down at this step
|
||||||
except (ComputeError, aiohttp.web.HTTPNotFound, aiohttp.web.HTTPConflict):
|
except (ComputeError, aiohttp.web.HTTPNotFound, aiohttp.web.HTTPConflict):
|
||||||
pass
|
pass
|
||||||
if os.path.exists(path + ".backup"):
|
try:
|
||||||
shutil.copy(path + ".backup", path)
|
if os.path.exists(path + ".backup"):
|
||||||
|
shutil.copy(path + ".backup", path)
|
||||||
|
except (PermissionError, OSError):
|
||||||
|
pass
|
||||||
self._status = "closed"
|
self._status = "closed"
|
||||||
self._loading = False
|
self._loading = False
|
||||||
raise e
|
raise e
|
||||||
|
Loading…
Reference in New Issue
Block a user