]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2023 15:51:55 +0000 (17:51 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2023 15:51:55 +0000 (17:51 +0200)
- whyever, but a list is returned, not a dict

fba/network.py

index e0520a156cc30e77eab39762cc87b33c97165103..e9fd9c956b81d6409a0a168d4756fd96466a2a8e 100644 (file)
@@ -244,7 +244,7 @@ def json_from_response(response: requests.models.Response) -> list:
     if not isinstance(response, requests.models.Response):
         raise ValueError(f"Parameter response[]='{type(response)}' is not type of 'Response'")
 
-    data = dict()
+    data = list()
     if response.text.strip() != "":
         # DEBUG: print(f"DEBUG: response.text()={len(response.text)} is not empty, invoking response.json() ...")
         try: