def get_queue()

in amazon_polly_async_batch/setprocessor.py [0:0]


def get_queue(name):
    """
    Returns the SQS queue object by name

    :param name: the name of the queue
    :return: the object
    """
    try:
        return sqs.get_queue_by_name(QueueName=name)
    except Exception as e:
        msg = 'Failed to find SQS queue {} because {}'.format(name, str(e))
        raise Exception(msg)