Emeg Fix : str is not callable
This commit is contained in:
parent
fa7a9bc102
commit
8a61170fbf
2
api.py
2
api.py
@ -107,7 +107,7 @@ class XiGuaLiveApi:
|
|||||||
try:
|
try:
|
||||||
d = p.json()
|
d = p.json()
|
||||||
except json.decoder.JSONDecodeError as e:
|
except json.decoder.JSONDecodeError as e:
|
||||||
print(p.text())
|
print(p.text)
|
||||||
return
|
return
|
||||||
if "data" in d and d["data"] is not None:
|
if "data" in d and d["data"] is not None:
|
||||||
for i in d["data"]:
|
for i in d["data"]:
|
||||||
|
Reference in New Issue
Block a user