config.ConfigStateHolder: initialize self._profile_cache in constructor

This commit is contained in:
InsanePrawn 2022-08-19 18:12:16 +02:00
parent 1c6689f710
commit 688f9e2375

View file

@ -189,6 +189,7 @@ class ConfigStateHolder:
self.file_state = ConfigLoadState() self.file_state = ConfigLoadState()
self.runtime = RuntimeConfiguration.fromDict(CONFIG_RUNTIME_DEFAULTS | runtime_conf) self.runtime = RuntimeConfiguration.fromDict(CONFIG_RUNTIME_DEFAULTS | runtime_conf)
self.runtime['arch'] = os.uname().machine self.runtime['arch'] = os.uname().machine
self._profile_cache = {}
if file_conf_path: if file_conf_path:
self.try_load_file(file_conf_path) self.try_load_file(file_conf_path)