Skip to content

Commit 2d24d90

Browse files
committed
fix the test on py33. Seems like .json() is generating byte array, fall back to json.loads()
1 parent ef9a5d4 commit 2d24d90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def query(self, query, time_precision='s', chunked=False):
186186
chunked_param))
187187

188188
if response.status_code == 200:
189-
return response.json()
189+
return json.loads(response.content)
190190
else:
191191
raise Exception(
192192
"{0}: {1}".format(response.status_code, response.content))

0 commit comments

Comments
 (0)