From 1e38b11f3494c68aa9fd80bfcd8b2abbd8f298d4 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 13 May 2015 10:16:24 +0200 Subject: [PATCH] Catch crash error in IOU in case of permission denied Fix #186 --- gns3server/modules/iou/iou_vm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/modules/iou/iou_vm.py b/gns3server/modules/iou/iou_vm.py index b7214bd4..d666fc95 100644 --- a/gns3server/modules/iou/iou_vm.py +++ b/gns3server/modules/iou/iou_vm.py @@ -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: