]> git.mxchange.org Git - fba.git/blobdiff - fba/blacklist.py
Fixed some issues found by pylint:
[fba.git] / fba / blacklist.py
index d78cde8d44a6393829be17686037ca34cb1ceae9..f71f735a2ab4ff683b280a82039fd22172393440 100644 (file)
@@ -34,10 +34,10 @@ blacklist = [
 
 def is_blacklisted(domain: str) -> bool:
     # DEBUG: print(f"DEBUG: domain='{domain}' - CALLED!")
-    if type(domain) != str:
+    if not isinstance(domain, str):
         raise ValueError(f"Parameter domain[]={type(domain)} is not 'str'")
     elif domain == "":
-        raise ValueError(f"Parameter 'domain' is empty")
+        raise ValueError("Parameter 'domain' is empty")
 
     blacklisted = False
     for peer in blacklist: