From 471fbe576c75776b315ed0e0a80de5c8052edb26 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 2 Feb 2015 15:00:56 -0700 Subject: [PATCH] Ignore OSError when checking for config file changes. --- gns3server/config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gns3server/config.py b/gns3server/config.py index deac3916..07761bab 100644 --- a/gns3server/config.py +++ b/gns3server/config.py @@ -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: