mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-19 21:07:57 +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))
|
||||
|
||||
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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user