Merge pull request #760 from karyon/patch-2

Compress command: Don't crash on UnicodeDecodeError
This commit is contained in:
karyon 2016-04-24 10:43:45 +02:00
commit e5a7df5221
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: