From b2457e0b3b6d43e156d14d202ae8fdc7d129eff8 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 13 May 2015 16:05:54 -0600 Subject: [PATCH] Check for empty iourc path. --- gns3server/modules/iou/iou_vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/iou/iou_vm.py b/gns3server/modules/iou/iou_vm.py index d666fc95..d826a2ab 100644 --- a/gns3server/modules/iou/iou_vm.py +++ b/gns3server/modules/iou/iou_vm.py @@ -439,8 +439,8 @@ class IOUVM(BaseVM): raise IOUError("Could not rename nvram files: {}".format(e)) iourc_path = self.iourc_path - if iourc_path is None: - raise IOUError("Could not find a iourc file (IOU license)") + if not iourc_path: + raise IOUError("Could not find an iourc file (IOU license)") if not os.path.isfile(iourc_path): raise IOUError("The iourc path '{}' is not a regular file".format(iourc_path))