1
0
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:
Julien Duponchelle 2015-03-17 18:34:23 +01:00
parent 66cdf39ea2
commit 8ca9c2121a

View File

@ -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)