]> git.mxchange.org Git - fba.git/commitdiff
whoops
authorMint <>
Fri, 22 Jul 2022 21:26:18 +0000 (00:26 +0300)
committerMint <>
Fri, 22 Jul 2022 21:26:18 +0000 (00:26 +0300)
fetch_blocks.py

index 4f1fe71c361c6f214af4f92a97b0926a80057e59..c84ec57c39ecf35d3d0d5ffc6c5593a8eebfb940 100644 (file)
@@ -69,9 +69,9 @@ def get_type(domain: str) -> str:
         if res.ok and "text/html" in res.headers["content-type"]:
             res = get(f"https://{domain}/nodeinfo/2.1", headers=headers, timeout=5)
         if res.ok:
-            if res.json()["software"]["name"] == "akkoma"
+            if res.json()["software"]["name"] == "akkoma":
                 return "pleroma"
-            else
+            else:
                 return res.json()["software"]["name"]
         elif res.status_code == 404:
             res = get(f"https://{domain}/api/v1/instance", headers=headers, timeout=5)