Compress command: Don't crash on UnicodeDecodeError

This commit is contained in:
Matt Robenolt 2014-03-29 21:26:28 -07:00 committed by Johannes Linke
parent d219949551
commit e3ebcf7b47
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ class Command(BaseCommand):
if verbosity > 0:
log.write("UnicodeDecodeError while trying to read "
"template %s\n" % template_name)
continue
try:
nodes = list(parser.walk_nodes(template))
except (TemplateDoesNotExist, TemplateSyntaxError) as e: