def send_content(self, connection, request_body): try: return SafeTransport.send_content(self, connection, request_body) except socket.error, e: # BBB: On Python < 2.7, HTTP connection is wrapped raise ProtocolError(getattr(connection, '_conn', connection).host, -1, "Could not connect to server", None)
def send_content(self, connection, request_body): try: return SafeTransport.send_content(self, connection, request_body) except socket.error, e: # BBB: On Python < 2.7, HTTP connection is wrapped raise ProtocolError( getattr(connection, '_conn', connection).host, -1, "Could not connect to server", None)
def send_content(self, connection, request_body): try: return SafeTransport.send_content(self, connection, request_body) except socket.error, e: raise ProtocolError(connection.host, -1, "Could not connect to server", None)