mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Do not crash if iourc file is missing
This commit is contained in:
1 parent
66cdf39ea2
commit
8ca9c2121a
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user