mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Check for empty iourc path.
This commit is contained in:
parent
2531a05adc
commit
b2457e0b3b
@ -439,8 +439,8 @@ class IOUVM(BaseVM):
|
|||||||
raise IOUError("Could not rename nvram files: {}".format(e))
|
raise IOUError("Could not rename nvram files: {}".format(e))
|
||||||
|
|
||||||
iourc_path = self.iourc_path
|
iourc_path = self.iourc_path
|
||||||
if iourc_path is None:
|
if not iourc_path:
|
||||||
raise IOUError("Could not find a iourc file (IOU license)")
|
raise IOUError("Could not find an iourc file (IOU license)")
|
||||||
if not os.path.isfile(iourc_path):
|
if not os.path.isfile(iourc_path):
|
||||||
raise IOUError("The iourc path '{}' is not a regular file".format(iourc_path))
|
raise IOUError("The iourc path '{}' is not a regular file".format(iourc_path))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user