Fix `get_data` method to correctly check keys in `ConfigManager` data structure

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda 2025-10-31 17:52:10 -03:00
parent 46387123bc
commit c35b700e06
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class ConfigManager(metaclass=SingletonMeta):
tomli_w.dump(self.__data, f) tomli_w.dump(self.__data, f)
def get_data(self,key): def get_data(self,key):
if key in self.__data.items(): if key in self.__data.keys():
return {key:self.__data[key]} return {key:self.__data[key]}
else: else:
return None return None