]> git.mxchange.org Git - fba.git/blobdiff - fba/helpers/blocklists.py
Continued:
[fba.git] / fba / helpers / blocklists.py
index 03af850df331f6f04bc6b9745719338f984010c0..0538cffe756b3bd16d5b3d63538aaf497d4c3bb2 100644 (file)
@@ -16,6 +16,7 @@
 
 import logging
 
+from fba.helpers import blacklist
 from fba.helpers import domain as domain_helper
 
 logging.basicConfig(level=logging.INFO)
@@ -104,6 +105,9 @@ def has(domain: str) -> bool:
     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: