

def get_file_from_storage(s3_connection, file_name):
    bucket = get_or_create_bucket(s3_connection)
    report = bucket.get_key(file_name)
    if (bucket is None):
        raise Exception('Xml not found in bucket "{}"'.format(settings.S3_BUCKET_NAME))
    return report

dataset/ETHPy150Open 2gis/badger-api/testreport/tasks.py get_file_from_storage/VarMisuse@30/46 `report`->`bucket`