Remove cache before running self.exception, not after

This commit is contained in:
ZyX 2013-05-01 20:31:04 +04:00
parent 82e2ea10c4
commit 1977a0125c
1 changed files with 1 additions and 1 deletions

View File

@ -143,11 +143,11 @@ class ConfigLoader(MultiRunnedThread):
try:
self.loaded[path] = deepcopy(self._load(path))
except Exception as e:
self.exception('Error while loading {0}: {1}', path, str(e))
try:
self.loaded.pop(path)
except KeyError:
pass
self.exception('Error while loading {0}: {1}', path, str(e))
def run(self):
while self.interval is not None and not self.shutdown_event.is_set():