handle pycurl.error