Pop path from self.loaded on exception

This commit is contained in:
ZyX 2013-04-10 20:04:22 +04:00 committed by ZyX
parent 85189e8b36
commit 1095257161
1 changed files with 4 additions and 0 deletions

View File

@ -200,6 +200,10 @@ class ConfigLoader(MultiRunnedThread):
except KeyError:
pass
self.exception('Error while loading {0}: {1}', path, str(e))
try:
self.loaded.pop(path)
except KeyError:
pass
def run(self):
while self.interval is not None and not self.shutdown_event.is_set():