Revision ab13eafe kamaki/clients/compute.py
b/kamaki/clients/compute.py | ||
---|---|---|
39 | 39 |
|
40 | 40 |
def raise_for_status(self, r): |
41 | 41 |
d = r.json |
42 |
if not d: |
|
43 |
return super(ComputeClient, self).raise_for_status(r) |
|
42 | 44 |
key = d.keys()[0] |
43 | 45 |
val = d[key] |
44 | 46 |
message = '%s: %s' % (key, val.get('message', '')) |
Also available in: Unified diff