Skip to content

Commit

Permalink
Don't silence compilation error when target file exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberdelia committed Mar 1, 2015
1 parent fa6aa61 commit f3fa679
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pipeline/compilers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@ def _compile(input_path):
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
compiler.compile_file(quote(infile), quote(outfile),
outdated=outdated, force=force)
return output_path
else:
return input_path
Expand Down

0 comments on commit f3fa679

Please sign in to comment.