Commit f3fa679f by Timothée Peignier

Don't silence compilation error when target file exists.

parent fa6aa614
......@@ -40,12 +40,8 @@ class Compiler(object):
infile = finders.find(input_path)
outfile = self.output_path(infile, compiler.output_extension)
outdated = compiler.is_outdated(input_path, output_path)
try:
compiler.compile_file(quote(infile), quote(outfile),
outdated=outdated, force=force)
except CompilerError:
if not self.storage.exists(output_path) or settings.DEBUG:
raise
return output_path
else:
return input_path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment