Update __init__.py

This commit is contained in:
HibiKier
2021-11-09 18:04:33 +08:00
committed by GitHub
parent 17506691a8
commit b70851b810
+1
View File
@@ -112,6 +112,7 @@ class ConfigsManager:
""" """
key = key.upper() key = key.upper()
if module in self._data.keys(): if module in self._data.keys():
for key in [key, f"{key} [LEVEL]"]:
if self._data[module].get(key) is not None: if self._data[module].get(key) is not None:
if self._data[module][key]["value"] is None: if self._data[module][key]["value"] is None:
return self._data[module][key]["default_value"] return self._data[module][key]["default_value"]