git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/pycurl' into planetlab-4_0-branch
[plcapi.git]
/
PLC
/
PyCurl.py
diff --git
a/PLC/PyCurl.py
b/PLC/PyCurl.py
index
9b42905
..
032ab75
100644
(file)
--- a/
PLC/PyCurl.py
+++ b/
PLC/PyCurl.py
@@
-5,7
+5,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: PyCurl.py
,v 1.2 2007/09/12 17:52:27 tmack Exp
$
+# $Id: PyCurl.py
5574 2007-10-25 20:33:17Z thierry
$
#
import os
#
import os
@@
-70,7
+70,7
@@
class PyCurlTransport(xmlrpclib.Transport):
if errcode == 60:
raise Exception, "PyCurl: SSL certificate validation failed"
elif errcode != 200:
if errcode == 60:
raise Exception, "PyCurl: SSL certificate validation failed"
elif errcode != 200:
- raise Exception, "PyCurl: HTTP error %d" % errcode
+ raise Exception, "PyCurl: HTTP error %d -- %r" % (errcode,errmsg)
# Parse response
p, u = self.getparser()
# Parse response
p, u = self.getparser()