Commit 6d604f07 authored by Vangelis Koukis's avatar Vangelis Koukis
Browse files

Fix bug introduced by previous commit

parent 443c1f01
......@@ -100,7 +100,8 @@ class Client(object):
try:
reply = json.loads(buf) if buf else {}
except ValueError:
raise ClientError('Did not receive valid JSON reply', buf)
raise ClientError('Did not receive valid JSON reply',
resp.status, buf)
if resp.status != success:
if len(reply) == 1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment