mirror of
https://github.com/powerline/powerline.git
synced 2025-07-31 01:35:40 +02:00
Remove cache before running self.exception, not after
This commit is contained in:
parent
82e2ea10c4
commit
1977a0125c
@ -143,11 +143,11 @@ class ConfigLoader(MultiRunnedThread):
|
|||||||
try:
|
try:
|
||||||
self.loaded[path] = deepcopy(self._load(path))
|
self.loaded[path] = deepcopy(self._load(path))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.exception('Error while loading {0}: {1}', path, str(e))
|
|
||||||
try:
|
try:
|
||||||
self.loaded.pop(path)
|
self.loaded.pop(path)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
self.exception('Error while loading {0}: {1}', path, str(e))
|
||||||
|
|
||||||
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…
x
Reference in New Issue
Block a user