]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 8 Mar 2024 15:43:10 +0000 (16:43 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 8 Mar 2024 16:22:40 +0000 (17:22 +0100)
- added missing key 'json' (ops!)

fba/commands.py
fba/networks/misskey.py

index 91e998d40b97aef30d26e46ff19b20aa95c64b7e..08ff9ffeec2998bc25a73a101f15314fe7916a7d 100644 (file)
@@ -206,7 +206,7 @@ def fetch_bkali(args: argparse.Namespace) -> int:
             logger.warning("post_json_api() for 'gql.sources.bka.li' returned error message='%s' - EXIT!", fetched["error_message"])
             return 100
         elif isinstance(fetched["json"], dict) and "error" in fetched["json"] and "message" in fetched["json"]["error"]:
-            logger.warning("post_json_api() returned error: '%s' - EXIT!", fetched["error"]["message"])
+            logger.warning("post_json_api() returned error: '%s' - EXIT!", fetched["json"]["error"]["message"])
             return 101
 
         rows = fetched["json"]
index 03b038fa3863b57202ff3651cf8b5355e51433e3..e7c7053c78b988ec0d6f8da31328d86129277433 100644 (file)
@@ -84,7 +84,7 @@ def fetch_peers(domain: str) -> list:
             instances.set_last_error(domain, fetched)
             break
         elif isinstance(fetched["json"], dict) and "error" in fetched["json"] and "message" in fetched["json"]["error"]:
-            logger.warning("post_json_api() returned error: '%s'", fetched['error']['message'])
+            logger.warning("post_json_api() returned error: '%s'", fetched["json"]["error"]["message"])
             instances.set_last_error(domain, fetched["json"]["error"]["message"])
             break
 
@@ -187,7 +187,7 @@ def fetch_blocks(domain: str) -> list:
                 instances.set_last_error(domain, fetched)
                 break
             elif isinstance(fetched["json"], dict) and "error" in fetched["json"] and "message" in fetched["json"]["error"]:
-                logger.warning("post_json_api() returned error: '%s'", fetched['error']['message'])
+                logger.warning("post_json_api() returned error: '%s'", fetched["json"]["error"]["message"])
                 instances.set_last_error(domain, fetched["json"]["error"]["message"])
                 break
 
@@ -275,7 +275,7 @@ def fetch_blocks(domain: str) -> list:
                 instances.set_last_error(domain, fetched)
                 break
             elif isinstance(fetched["json"], dict) and "error" in fetched["json"] and "message" in fetched["json"]["error"]:
-                logger.warning("post_json_api() returned error: '%s'", fetched['error']['message'])
+                logger.warning("post_json_api() returned error: '%s'", fetched["json"]["error"]["message"])
                 instances.set_last_error(domain, fetched["json"]["error"]["message"])
                 break