Sorry, I sent the wrong patch. Please ignore.

On Fri, Apr 20, 2012 at 9:19 AM, Chris Schrier <[email protected]> wrote:

> ---
>  lib/rapi/client.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lib/rapi/client.py b/lib/rapi/client.py
> index cbcf9ae..d68bb62 100644
> --- a/lib/rapi/client.py
> +++ b/lib/rapi/client.py
> @@ -472,7 +472,7 @@ class GanetiRapiClient(object): # pylint: disable=R0904
>         if err.args[0] in _CURL_SSL_CERT_ERRORS:
>           raise CertificateError("SSL certificate error %s" % err)
>
> -        raise GanetiApiError(str(err))
> +        raise GanetiApiError(str(err), code=err.args[0])
>     finally:
>       # Reset settings to not keep references to large objects in memory
>       # between requests
> --
> 1.7.7.3
>
>

Reply via email to