Revision 5ed59e1e lib/rapi/client.py
b/lib/rapi/client.py | ||
---|---|---|
419 | 419 |
encoded_response_content = resp.read() |
420 | 420 |
except (OpenSSL.SSL.Error, OpenSSL.crypto.Error), err: |
421 | 421 |
raise CertificateError("SSL issue: %s (%r)" % (err, err)) |
422 |
except urllib2.HTTPError, err: |
|
423 |
raise GanetiApiError(str(err), code=err.code) |
|
422 | 424 |
|
423 | 425 |
if encoded_response_content: |
424 | 426 |
response_content = simplejson.loads(encoded_response_content) |
Also available in: Unified diff