fields.append(_pending[key][domain])
sql_string += f" {key} = ?,"
- logger.debug("sql_string()=%d", len(sql_string))
+ logger.debug("sql_string(%d)='%s'", len(sql_string), sql_string)
if sql_string == "":
raise ValueError(f"No fields have been set, but method invoked, domain='{domain}'")
def deobfuscate(char: str, domain: str, blocked_hash: str = None) -> tuple:
logger.debug("char='%s',domain='%s',blocked_hash='%s' - CALLED!", char, domain, blocked_hash)
- domain_helper.raise_on(domain)
if not isinstance(char, str):
raise ValueError(f"Parameter char[]='{type(char)}' is not of type 'str'")
raise ValueError("Parameter 'char' is empty")
elif not char in domain:
raise ValueError(f"char='{char}' not found in domain='{domain}' but function invoked")
+ elif not isinstance(domain, str):
+ raise ValueError(f"Parameter domain[]='%s'", type(domain))
+ elif domain == "":
+ raise ValueError("Parameter 'domain' is empty")
elif not isinstance(blocked_hash, str) and blocked_hash is not None:
raise ValueError(f"Parameter blocked_hash[]='{type(blocked_hash)}' is not of type 'str'")