Ejemplo n.º 1
0
 def __init__(self, arguments, trust_callback=None):
     try:
         SocketTransport.__init__(self, arguments, trust_callback)
     except socket.error as e:
         raise ConnectionError(e)
     except socket.timeout as e:
         raise ConnectionError(e)
Ejemplo n.º 2
0
    def __init__(self, arguments, trust_callback=None):
        try:
            SocketTransport.__init__(self, arguments, trust_callback)
        except socket.error as e:
            print "error connecting to server:", e.strerror.lower()

            sys.exit(-1)
        except socket.timeout as e:
            print "error connecting to server:", e.strerror.lower()

            sys.exit(-1)
Ejemplo n.º 3
0
    def __init__(self, arguments, trust_callback=None):
        try:
            SocketTransport.__init__(self, arguments, trust_callback)
        except socket.error as e:
            print "error connecting to server:", e.strerror.lower()

            sys.exit(-1)
        except socket.timeout as e:
            print "error connecting to server:", e.strerror.lower()

            sys.exit(-1)