]> git.mxchange.org Git - fba.git/blobdiff - fba/config.py
Fixed some issues found by pylint:
[fba.git] / fba / config.py
index b488ef2f164e2455312b3488d212af00ba0b48cd..f682106a53d736bd0712fd89e84a83a367d56f4d 100644 (file)
@@ -21,7 +21,7 @@ with open("config.json") as f:
 
 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")