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)
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)))
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))
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)))