diff --git a/gns3server/modules/iou/iou_vm.py b/gns3server/modules/iou/iou_vm.py index cb5f917d..7323b9d7 100644 --- a/gns3server/modules/iou/iou_vm.py +++ b/gns3server/modules/iou/iou_vm.py @@ -370,6 +370,8 @@ class IOUVM(BaseVM): return config = configparser.ConfigParser() + if self.iourc_path is None: + raise IOUError("Could not found iourc file") try: with open(self.iourc_path) as f: config.read_file(f)