Commit 8b7b3c97 by Timothée Peignier

Merge pull request #184 from fabianbuechler/patch-1

avoid errors for newlines in stderr
parents 1871532f 2db6e4d6
......@@ -83,7 +83,7 @@ class SubProcessCompiler(CompilerBase):
if content:
content = smart_bytes(content)
stdout, stderr = pipe.communicate(content)
if stderr:
if stderr.strip():
raise CompilerError(stderr)
if self.verbose:
print(stderr)
......
......@@ -232,7 +232,7 @@ class SubProcessCompressor(CompressorBase):
if content:
content = smart_bytes(content)
stdout, stderr = pipe.communicate(content)
if stderr:
if stderr.strip():
raise CompressorError(stderr)
if self.verbose:
print(stderr)
......
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