logger.debug("domain='%s' - CALLED!", domain)
domain_helper.raise_on(domain)
- if not instances.is_registered(domain):
- raise Exception(f"domain='{domain}' is not registered but function is invoked.")
- elif blacklist.is_blacklisted(domain):
+ if blacklist.is_blacklisted(domain):
raise Exception(f"domain='{domain}' is blacklisted but function was invoked")
+ elif not instances.is_registered(domain):
+ raise Exception(f"domain='{domain}' is not registered but function is invoked.")
# Init block list
blocklist = list()