mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02:00
Ignore OSError when checking for config file changes.
This commit is contained in:
parent
45ca493ecf
commit
471fbe576c
@ -110,8 +110,11 @@ class Config(object):
|
|||||||
|
|
||||||
changed = False
|
changed = False
|
||||||
for file in self._watched_files:
|
for file in self._watched_files:
|
||||||
|
try:
|
||||||
if os.stat(file).st_mtime != self._watched_files[file]:
|
if os.stat(file).st_mtime != self._watched_files[file]:
|
||||||
changed = True
|
changed = True
|
||||||
|
except OSError:
|
||||||
|
continue
|
||||||
if changed:
|
if changed:
|
||||||
self.read_config()
|
self.read_config()
|
||||||
for section in self._override_config:
|
for section in self._override_config:
|
||||||
|
Loading…
Reference in New Issue
Block a user