def METHOD_NAME(*args, **kwargs):
    self = args[0]
    try:
        return func(*args, **kwargs)
    except UnauthorizedException as exc:
        logger.debug("Not currently connected to Bailo")
        if self.connection_params:
            logger.debug("Reconnecting")
            self._auth.authenticate_user()
            return func(*args, **kwargs)
        logger.error("Client has not previously connected")
        raise UnconnectedClient("Client must call connect to authenticate") from exc