Initialize `__data` in `ConfigManager` as an empty dictionary
This commit is contained in:
parent
59178d3cec
commit
4b790828a8
|
|
@ -22,7 +22,7 @@ class SingletonMeta(type):
|
|||
class ConfigManager(metaclass=SingletonMeta):
|
||||
def __init__(self):
|
||||
self.config_dir = DirectoryManager.get_config_directory()
|
||||
self.__data = None
|
||||
self.__data = dict()
|
||||
|
||||
def read_config(self):
|
||||
if os.path.exists(f"{self.config_dir}/config.toml"):
|
||||
|
|
|
|||
Loading…
Reference in New Issue