Pop path from self.loaded on exception
This commit is contained in:
parent
85189e8b36
commit
1095257161
|
@ -200,6 +200,10 @@ class ConfigLoader(MultiRunnedThread):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
self.exception('Error while loading {0}: {1}', path, str(e))
|
self.exception('Error while loading {0}: {1}', path, str(e))
|
||||||
|
try:
|
||||||
|
self.loaded.pop(path)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while self.interval is not None and not self.shutdown_event.is_set():
|
while self.interval is not None and not self.shutdown_event.is_set():
|
||||||
|
|
Loading…
Reference in New Issue