import logging


def get_queue(sqs, queue_name):
    """
    Purpose:
        Return an SQS Queue by Queue Name
    Args:
        sqs (SQS Resource Object): SQS Resource Object
        queue_name (String): Name of Queue
    Return:
        queue (SQS Queue Object): Queue object for the queue in
            SQS
    """

    try:
        return sqs.get_queue_by_name(QueueName=queue_name)
    except Exception as err:
        logging.exception(f"Exception Getting Queue: {err}")
        raise