]> git.mxchange.org Git - fba.git/blobdiff - fba/http/nodeinfo.py
Continued:
[fba.git] / fba / http / nodeinfo.py
index 7d7620ad9d658240216011bb2108dbe5f76fc0da..ec78862ef6fac91fa9388189d5712d1f671cae3d 100644 (file)
@@ -42,7 +42,10 @@ def fetch_nodeinfo(domain: str, path: str = None) -> dict:
     data = fetch_wellknown_nodeinfo(domain)
 
     logger.debug("data[%s](%d)='%s'", type(data), len(data), data)
-    if "error_message" not in data and "json" in data and len(data["json"]) > 0:
+    if "exception" in data:
+        logger.warning("Exception returned: '%s', raising again ...", type(data["exception"]))
+        raise data["exception"]
+    elif "error_message" not in data and "json" in data and len(data["json"]) > 0:
         logger.debug("Invoking instances.set_last_nodeinfo(%s) ...", domain)
         instances.set_last_nodeinfo(domain)