Fix bug introduced by previous commit
[kamaki] / kamaki / client.py
index c5dff47..8e5d664 100644 (file)
@@ -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: