import logging


def get_topic(sns, topic_arn):
    """
    Purpose:
        Return an SNS Topic by ARN
    Args:
        sns (SNS Resource Object): SNS Object owning the Topic
        topic_arn (String): ARN of the Topic
    Return:
        topic (SNS Topic Object): Topic object for the topic in
            SNS
    """

    try:
        return sns.Topic(topic_arn)
    except Exception as err:
        logging.exception(f"Exception Getting Topic: {err}")
        raise