236
257
url = curl.getinfo(pycurl.EFFECTIVE_URL)
237
258
mutter('got pycurl error: %s, %s, %s, url: %s ',
238
259
e[0], _pycurl_errors.errorcode[e[0]], e, url)
239
260
if e[0] in (_pycurl_errors.CURLE_COULDNT_RESOLVE_HOST,
240
261
_pycurl_errors.CURLE_COULDNT_CONNECT,
241
263
_pycurl_errors.CURLE_COULDNT_RESOLVE_PROXY):
242
264
raise ConnectionError('curl connection error (%s)\non %s'