mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-29 02:08:10 +00:00
Do not crash if iourc file is missing
This commit is contained in:
parent
66cdf39ea2
commit
8ca9c2121a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user