1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Catch crash error in IOU in case of permission denied

Fix #186
This commit is contained in:
Julien Duponchelle 2015-05-13 10:16:24 +02:00
parent bebdadc465
commit 1e38b11f34

View File

@ -433,7 +433,10 @@ class IOUVM(BaseVM):
yield from self._library_check()
self._rename_nvram_file()
try:
self._rename_nvram_file()
except OSError as e:
raise IOUError("Could not rename nvram files: {}".format(e))
iourc_path = self.iourc_path
if iourc_path is None: