# DEBUG: print(f"DEBUG: software='{software}' - EXIT!")
return software
-def blacklist.is_blacklisted(domain: str) -> bool:
- # DEBUG: print(f"DEBUG: domain='{domain}' - CALLED!")
- if type(domain) != str:
- raise ValueError(f"Parameter domain[]={type(domain)} is not 'str'")
- elif domain == "":
- raise ValueError(f"Parameter 'domain' is empty")
-
- blacklisted = False
- for peer in blacklist:
- # DEBUG: print(f"DEBUG: Checking peer='{peer}' ...")
- if peer in domain:
- # DEBUG: print(f"DEBUG: domain='{domain}' is blacklisted.")
- blacklisted = True
-
- # DEBUG: print(f"DEBUG: blacklisted='{blacklisted}' - EXIT!")
- return blacklisted
-
def remove_pending_error(domain: str):
if type(domain) != str:
raise ValueError(f"Parameter domain[]={type(domain)} is not 'str'")