1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-03 19:10:58 +08:00

second commit

This commit is contained in:
Xu Yang
2023-05-30 20:20:16 +08:00
parent f37643550b
commit 2af35d9c89

9
qlib/finco/utils.py Normal file
View File

@@ -0,0 +1,9 @@
import json
def parse_json(response):
try:
return json.loads(response)
except json.decoder.JSONDecodeError:
pass
raise Exception(f"Failed to parse response: {response}, please report it or help us to fix it.")