Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)