def _get_jinja_error_slug(tb_data):
    '''
    Return the line number where the template error was found
    '''
    try:
        return [
            x
            for x in tb_data if x[2] in ('top-level template code',
                                         'template')
        ][-1]
    except __HOLE__:
        pass
dataset/ETHPy150Open saltstack/salt/salt/utils/templates.py/_get_jinja_error_slug