import traceback


def get_details(exception):
    """
    return the details of the traceback
    """

    tbstring = ''.join(traceback.format_exception(
        type(exception), exception, exception.__traceback__))
    tbargs = ', '.join(exception.args)
    return tbstring, tbargs