projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e43d4f9
)
RAPI client should convert urllib2.URLError to GanetiApiError
author
Tom Limoncelli
<tlim@google.com>
Mon, 31 May 2010 17:09:00 +0000
(13:09 -0400)
committer
Michael Hanselmann
<hansmi@google.com>
Mon, 31 May 2010 17:17:30 +0000
(19:17 +0200)
Signed-off-by: Tom Limoncelli <tlim@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/rapi/client.py
patch
|
blob
|
history
diff --git
a/lib/rapi/client.py
b/lib/rapi/client.py
index
262e389
..
38f673b
100644
(file)
--- a/
lib/rapi/client.py
+++ b/
lib/rapi/client.py
@@
-421,6
+421,8
@@
class GanetiRapiClient(object):
raise CertificateError("SSL issue: %s (%r)" % (err, err))
except urllib2.HTTPError, err:
raise GanetiApiError(str(err), code=err.code)
+ except urllib2.URLError, err:
+ raise GanetiApiError(str(err))
if encoded_response_content:
response_content = simplejson.loads(encoded_response_content)