def flash_class(category):
    """Convert flash message category to CSS class
    for Twitter Bootstrap alert

    :param category: Category of flash message
    :type category: str
    :return: CSS class for category
    :rtype: str
    """
    if category == 'error':
        return 'danger'
    return category