mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +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
|
return
|
||||||
|
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
|
if self.iourc_path is None:
|
||||||
|
raise IOUError("Could not found iourc file")
|
||||||
try:
|
try:
|
||||||
with open(self.iourc_path) as f:
|
with open(self.iourc_path) as f:
|
||||||
config.read_file(f)
|
config.read_file(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user