Merge pull request #760 from karyon/patch-2
Compress command: Don't crash on UnicodeDecodeError
This commit is contained in:
commit
e5a7df5221
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user