import logging
+from fba.helpers import blacklist
from fba.helpers import domain as domain_helper
logging.basicConfig(level=logging.INFO)
logger.debug("domain='%s' - CALLED!")
domain_helper.raise_on(domain)
+ if blacklist.is_blacklisted(domain):
+ raise ValueError(f"domain='{domain}' is blacklisted but function was invoked")
+
# Default is not found
found = False
for row in oliphant_blocklists + csv_files: