def _requires_aws(fn):
    if settings.AWS_ENABLED:
        return fn
    else:
        def complain(*args, **kwargs):
            raise Exception("AWS_ENABLED must be True to call %s" % fn.__name__)
        return complain
dataset/ETHPy150Open pebble/cloudpebble/utils/s3.py/_requires_aws/original