# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id$
+# $Id: PyCurl.py 5574 2007-10-25 20:33:17Z thierry $
#
import os
(errcode, errmsg) = err
if errcode == 60:
- raise Exception, "SSL certificate validation failed"
+ raise Exception, "PyCurl: SSL certificate validation failed"
elif errcode != 200:
- raise Exception, "HTTP error %d" % errcode
+ raise Exception, "PyCurl: HTTP error %d -- %r" % (errcode,errmsg)
# Parse response
p, u = self.getparser()