]> git.mxchange.org Git - fba.git/blobdiff - fba/networks/lemmy.py
Continued:
[fba.git] / fba / networks / lemmy.py
index 8c6e336f984d8b2b28d08e0b0f9163464a545820..d216cf8cb461c74924ce768f22dabfb8c6f4ee1d 100644 (file)
@@ -74,6 +74,8 @@ def fetch_peers(domain: str, origin: str) -> list:
 
     if blacklist.is_blacklisted(domain):
         raise Exception(f"domain='{domain}' is blacklisted but function is invoked.")
+    elif not instances.is_registered(domain):
+        raise Exception(f"domain='{domain}' is not registered but function is invoked.")
 
     peers = list()