]> git.mxchange.org Git - fba.git/blobdiff - fba/config.py
Continued:
[fba.git] / fba / config.py
index b488ef2f164e2455312b3488d212af00ba0b48cd..1ae1a25e648a51991b1fc5b6298e7afd71b4b630 100644 (file)
 import json
 
 with open("config.json") as f:
+    # DEBUG: print("DEBUG: Loading configuration file ...")
     _config = json.loads(f.read())
 
 def get(key: str) -> any:
     # DEBUG: print(f"DEBUG: key[{type(key)}]={key} - CALLED!")
-    if type(key) != str:
+    if not isinstance(key, str):
         raise ValueError(f"Parameter key[]='{type(key)}' is not 'str'")
     elif key == "":
         raise ValueError("Parameter 'key' is empty")