diff --git a/powerline/lib/config.py b/powerline/lib/config.py index 3b8ce5a4..60aff1eb 100644 --- a/powerline/lib/config.py +++ b/powerline/lib/config.py @@ -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():