Commit c1ff4867 by Melvin Laplanche

Fix an IOError when collecting a new file which need to be compiled

parent 672fd613
......@@ -30,7 +30,11 @@ class Compiler(object):
try:
infile = finders.find(input_path)
outfile = finders.find(output_path)
outdated = self.is_outdated(input_path, output_path)
if outfile is None:
outfile = self.output_path(infile, compiler.output_extension)
outdated = False
else:
outdated = self.is_outdated(input_path, output_path)
compiler.compile_file(infile, outfile, outdated=outdated, force=force)
except CompilerError:
if not self.storage.exists(output_path) or not settings.PIPELINE:
......
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