From 3eeeafb30ff8f3cf498760936a645b6f5c76ee6d Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Wed, 9 Nov 2022 17:23:14 +0100 Subject: [PATCH] config.state: try_load_file(): clear state.exception after successful load --- config/state.py | 1 + 1 file changed, 1 insertion(+) diff --git a/config/state.py b/config/state.py index 7641b06..0395baa 100644 --- a/config/state.py +++ b/config/state.py @@ -210,6 +210,7 @@ class ConfigStateHolder: self._profile_cache = None try: self.file = Config.fromDict(parse_file(config_file=config_file, base=base), validate=True) + self.file_state.exception = None except Exception as ex: self.file_state.exception = ex self.file_state.load_finished = True