@vila: How do you see the interaction between the various http exception classes working. For instance, why is this code as it is:
def http_error_default(self, req, fp, code, msg, hdrs): if code == 403: raise errors.TransportError( 'Server refuses to fulfill the request (403 Forbidden)' ' for %s' % req.get_full_url()) else: raise errors.InvalidHttpResponse(req.get_full_url(), 'Unable to handle http code %d: %s' % (code, msg))
« Back to merge proposal
@vila: How do you see the interaction between the various http exception classes working. For instance, why is this code as it is:
def http_error_ default( self, req, fp, code, msg, hdrs): TransportError(
'Server refuses to fulfill the request (403 Forbidden)' InvalidHttpResp onse(req. get_full_ url(),
'Unable to handle http code %d: %s'
% (code, msg))
if code == 403:
raise errors.
' for %s' % req.get_full_url())
else:
raise errors.