1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-24 15:58:08 +00:00

Fix issue when there is no gns3_controller.conf. Fixes https://github.com/GNS3/gns3-gui/issues/2644

This commit is contained in:
grossmj 2018-11-30 19:09:10 +08:00
parent 58b2ee152d
commit 0fd54536d2

View File

@ -328,6 +328,7 @@ class Controller:
try:
if not os.path.exists(self._config_file):
await self._import_gns3_gui_conf()
self._config_loaded = True
self.save()
with open(self._config_file) as f:
controller_settings = json.load(f)