def catch_client_error(func):
    def inner(message):
        try:
            return func(message)
        except ClientError as e:
            # If we catch a client error, tell it to send an error string
            # back to the client on their reply channel
            e.send_to(message.reply_channel)
    return inner
Creates a CheckAccessHelper for controlling write access.
dataset/ETHPy150Open andrewgodwin/channels-examples/multichat/chat/utils.py/catch_client_error--crossover with--dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/user_managers.py/FullAccessControlManager._CreateWriteAccessHelper