import json
with open("config.json") as f:
- config = json.loads(f.read())
+ _config = json.loads(f.read())
def get(key: str) -> any:
# DEBUG: print(f"DEBUG: key[{type(key)}]={key} - CALLED!")
raise ValueError(f"Parameter key[]='{type(key)}' is not 'str'")
elif key == "":
raise ValueError("Parameter 'key' cannot be empty")
- elif not key in config:
- raise KeyError(f"key='{key}' does not exist in config array")
+ elif not key in _config:
+ raise KeyError(f"key='{key}' does not exist in _config array")
- # DEBUG: print(f"DEBUG: config[{key}]={config[key]} - EXIT!")
- return config[key]
\ No newline at end of file
+ # DEBUG: print(f"DEBUG: _config[{key}]={_config[key]} - EXIT!")
+ return _config[key]