Skip to content

Commit f3fa679

Browse files
committed
Don't silence compilation error when target file exists.
1 parent fa6aa61 commit f3fa679

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pipeline/compilers/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,8 @@ def _compile(input_path):
4040
infile = finders.find(input_path)
4141
outfile = self.output_path(infile, compiler.output_extension)
4242
outdated = compiler.is_outdated(input_path, output_path)
43-
try:
44-
compiler.compile_file(quote(infile), quote(outfile),
45-
outdated=outdated, force=force)
46-
except CompilerError:
47-
if not self.storage.exists(output_path) or settings.DEBUG:
48-
raise
43+
compiler.compile_file(quote(infile), quote(outfile),
44+
outdated=outdated, force=force)
4945
return output_path
5046
else:
5147
return input_path

0 commit comments

Comments
 (0)