mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
parent
bb0db7846f
commit
5ca9becdf9
@ -434,7 +434,10 @@ class Project:
|
||||
path = os.path.join(directory, project)
|
||||
if os.path.exists(os.path.join(path, ".gns3_temporary")):
|
||||
log.warning("Purge old temporary project {}".format(project))
|
||||
shutil.rmtree(path)
|
||||
try:
|
||||
shutil.rmtree(path)
|
||||
except OSError as e:
|
||||
log.error("Error when cleaning {}: {}".format(path, str(e)))
|
||||
|
||||
def modules(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user