Skip to content
Myr

Skip templates with syntax errors on babel extract

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 0fad031 · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:jinja2/ext.py+5 added-1 removed
423 unmodified lines
424 True, Undefined, None, False, None, 0, False425 )426427 source = fileobj.read().decode(options.get('encoding', 'utf-8'))428 try:428 node = environment.parse(source)429 node = environment.parse(source)430 except TemplateSyntaxError, e:431 # skip templates with syntax errors432 return433 for lineno, func, message in extract_from_ast(node, keywords):434 yield lineno, func, message, []435436
4 unmodified lines