We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3df3f3b commit 0d185f9Copy full SHA for 0d185f9
fdk/json/request.py
@@ -40,7 +40,7 @@ def readline(stream):
40
s = line.replace('\n"\n,', '",').replace("\n}", "}")
41
print("Before JSON parsing: {}".format(s),
42
file=sys.stderr, flush=True)
43
- return ujson.loads(s)
+ return ujson.loads(s) if len(s) > 0 else {}
44
if c == "\n":
45
line += c
46
ret = True
0 commit comments