Commit 9747f259 by Rickey Visinski

prevent pipeline from dying on Closure Compiler warnings

parent 849022f0
...@@ -232,8 +232,8 @@ class SubProcessCompressor(CompressorBase): ...@@ -232,8 +232,8 @@ class SubProcessCompressor(CompressorBase):
if content: if content:
content = smart_bytes(content) content = smart_bytes(content)
stdout, stderr = pipe.communicate(content) stdout, stderr = pipe.communicate(content)
if stderr.strip(): if stderr.strip() and pipe.returncode != 0:
raise CompressorError(stderr) raise CompressorError(stderr)
if self.verbose: elif self.verbose:
print(stderr) print(stderr)
return force_text(stdout) return force_text(stdout)
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