示例#1
0
 def untilConcludes(self, *args):
     try:
         return Connection.untilConcludes(self, *args)
     except websocket.WebSocketConnectionClosedException as e:
         raise ConnectionClosedException(e)
     except websocket.WebSocketTimeoutException as e:
         raise ConnectionClosedException(e)
示例#2
0
 def untilConcludes(self, *args):
     try:
         return Connection.untilConcludes(self, *args)
     except error as e:
         code = e[0]
         if code==winerror.ERROR_PIPE_NOT_CONNECTED:
             return None
         raise IOError("%s: %s" % (code, win32api.FormatMessage(code)))
示例#3
0
 def untilConcludes(self, fn, *args, **kwargs):
     try:
         return Connection.untilConcludes(self, fn, *args, **kwargs)
     except Exception as e:
         code = GetLastError()
         log("untilConcludes(%s, ) exception: %s, error code=%s",
             fn,
             e,
             code,
             exc_info=True)
         if code == ERROR_PIPE_NOT_CONNECTED:
             return None
         raise IOError("%s: %s" % (e, code))
示例#4
0
 def untilConcludes(self, *args):
     try:
         return Connection.untilConcludes(self, *args)
     except error as e:
         code = e[0]
         raise IOError("%s: %s" % (code, win32api.FormatMessage(code)))
示例#5
0
 def untilConcludes(self, *args):
     try:
         return Connection.untilConcludes(self, *args)
     except error as e:
         code = e[0]
         raise IOError("%s: %s" % (code, win32api.FormatMessage(code)))