X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FPyCurl.py;fp=PLC%2FPyCurl.py;h=51b08a36b0973a45f8dfd6e0eb06562c8adce377;hb=2fbc54bb18d05d1c8972257a342c3ae162e83c6e;hp=9b42905c2f8fcd228f577b6fb79b30568cbfef6e;hpb=1d36cde819b7bcadb4702e6e5952d66c1ce5d185;p=plcapi.git diff --git a/PLC/PyCurl.py b/PLC/PyCurl.py index 9b42905..51b08a3 100644 --- a/PLC/PyCurl.py +++ b/PLC/PyCurl.py @@ -5,7 +5,7 @@ # Mark Huang # 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,v 1.3 2007/10/01 20:51:47 tmack Exp $ # import os @@ -70,7 +70,7 @@ class PyCurlTransport(xmlrpclib.Transport): 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()