X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=fba%2Fhttp%2Ffederation.py;h=e0bd1aede5090012fec35c40e09ac9714db8c392;hb=a08c1e20e34164f61e749739930fb9ae3d45e6db;hp=2cb50f497744ea88b682a3630fc63753427a1f4b;hpb=1bca9e20775542a690f24cf7a6127865cfe7b8e5;p=fba.git diff --git a/fba/http/federation.py b/fba/http/federation.py index 2cb50f4..e0bd1ae 100644 --- a/fba/http/federation.py +++ b/fba/http/federation.py @@ -567,10 +567,10 @@ def fetch_blocks(domain: str) -> list: 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()