raise Exception(f"blocker='{blocker}' is blacklisted but function invoked")
elif blacklist.is_blacklisted(blocked):
raise Exception(f"blocked='{blocked}' is blacklisted but function invoked")
+ elif is_instance_blocked(blocker, blocked, block_level):
+ raise Exception(f"blocker='{blocker}' is already blocking blocked='{blocked}' with block_level='{block_level}' but function was invoked")
elif reason is not None and reason == "":
raise Exception(f"blocker='{blocker}',blocked='{blocked}',block_level='{block_level}' has empty (not 'None') block reason set")
logger.debug("EXIT!")
def valid(value: str, column: str) -> bool:
- logger.debug("value='%s' - CALLED!", value)
+ logger.debug("value='%s',column='%s' - CALLED!", value, column)
if not isinstance(value, str):
raise ValueError(f"Parameter value[]='{type(value)}' is not of type 'str'")
return is_valid
def translate_idnas(rows: list, column: str):
- logger.debug("rows[]='%s' - CALLED!", type(rows))
+ logger.debug("rows[]='%s',column='%s' - CALLED!", type(rows), column)
if not isinstance(rows, list):
raise ValueError(f"rows[]='{type(rows)}' is not of type 'list'")
if not isinstance(block_level, str):
raise ValueError(f"Parameter block_level[]='{type(block_level)}' is not of type 'str'")
elif block_level in ["accept", "accepted"]:
- raise ValueError(f"Parameter block_level='{block_level}' is not accepted but function was invoked")
+ raise ValueError(f"Parameter block_level='{block_level}' is 'accept(ed)' but function was invoked")
elif block_level == "silence":
logger.debug("Block level 'silence' has been changed to 'silenced'")
block_level = "silenced"