1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Do not show log message if configuration file doesn't exist. Fixes #1206.

This commit is contained in:
grossmj 2018-01-08 18:07:15 +07:00
parent 21a7a68875
commit 927f7e6b9d

View File

@ -144,7 +144,8 @@ class Config:
def _watch_config_file(self): def _watch_config_file(self):
for file in self._files: 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): def _config_file_change(self, path):
self.read_config() self.read_config()