Ignore OSError when checking for config file changes.

This commit is contained in:
Jeremy committed 2015-02-02 15:00:56 -07:00
1 parent 45ca493ecf
commit 471fbe576c
1 file changed
+5 -2
+5 -2
View File
@@ -110,8 +110,11 @@ class Config(object):
changed = False
for file in self._watched_files:
if os.stat(file).st_mtime != self._watched_files[file]:
changed = True
try:
if os.stat(file).st_mtime != self._watched_files[file]:
changed = True
except OSError:
continue
if changed:
self.read_config()
for section in self._override_config: