1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-12 17:10:55 +00:00

Fix crash when IOU script file is incorrect

Fix #125
This commit is contained in:
Julien Duponchelle 2015-03-31 21:50:03 +02:00
parent 47ffdbd4ed
commit 36f5fd2865

View File

@ -959,7 +959,7 @@ class IOUVM(BaseVM):
initial_config = initial_config.replace("%h", self._name)
f.write(initial_config)
except OSError as e:
raise IOUError("Can't write initial configuration file '{}'".format(self.script_file))
raise IOUError("Can't write initial configuration file '{}'".format(script_file))
@property
def initial_config_file(self):