Merge pull request #47053 from clan/jinja-error

handle jinja error in <module> level
This commit is contained in:
Mike Place 2018-04-16 16:47:54 -06:00 committed by GitHub
commit 86c7cfef56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,8 @@ def _get_jinja_error_slug(tb_data):
return [
x
for x in tb_data if x[2] in ('top-level template code',
'template')
'template',
'<module>')
][-1]
except IndexError:
pass