From 927f7e6b9d76959e7adc5e155052737e8fd11ad5 Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 8 Jan 2018 18:07:15 +0700 Subject: [PATCH] Do not show log message if configuration file doesn't exist. Fixes #1206. --- gns3server/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/config.py b/gns3server/config.py index 0e4b80c4..d15d32f0 100644 --- a/gns3server/config.py +++ b/gns3server/config.py @@ -144,7 +144,8 @@ class Config: def _watch_config_file(self): for file in self._files: - self._watched_files[file] = FileWatcher(file, self._config_file_change) + if os.path.exists(file): + self._watched_files[file] = FileWatcher(file, self._config_file_change) def _config_file_change(self, path): self.read_config()