Skip to content

Commit

Permalink
Fix for #345
Browse files Browse the repository at this point in the history
  • Loading branch information
kmmbvnr committed Sep 15, 2016
1 parent 97800d4 commit 04dec9d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion django_jenkins/tasks/run_csslint.py
Expand Up @@ -34,7 +34,7 @@ def run(self, apps_locations, **options):
process_output, err = process.communicate()
retcode = process.poll()
if retcode not in [0, 1]: # normal csslint return codes
raise subprocess.CalledProcessError(retcode, cmd, output=output + '\n' + err)
raise subprocess.CalledProcessError(retcode, cmd, output='{}\n\n{}'.format(output, err))

output.write(process_output.decode('utf-8'))
else:
Expand Down
2 changes: 1 addition & 1 deletion django_jenkins/tasks/run_jshint.py
Expand Up @@ -27,7 +27,7 @@ def run(self, apps_locations, **options):
jshint_output, err = process.communicate()
retcode = process.poll()
if retcode not in [0, 1, 2]: # normal jshint return codes
raise subprocess.CalledProcessError(retcode, cmd, output='%s\n%s' % (jshint_output, err))
raise subprocess.CalledProcessError(retcode, cmd, output='{}\n\n{}'.format(output, err))

output.write(jshint_output.decode('utf-8'))
output.close()
2 changes: 1 addition & 1 deletion django_jenkins/tasks/run_scsslint.py
Expand Up @@ -32,7 +32,7 @@ def run(self, apps_locations, **options):
process_output, err = process.communicate()
retcode = process.poll()
if retcode not in [0, 1, 2]: # normal scss-lint return codes
raise subprocess.CalledProcessError(retcode, cmd, output='%s\n%s' % (output, err))
raise subprocess.CalledProcessError(retcode, cmd, output='{}\n\n{}'.format(output, err))

output.write(process_output.decode('utf-8'))
else:
Expand Down
2 changes: 1 addition & 1 deletion django_jenkins/tasks/run_sloccount.py
Expand Up @@ -13,7 +13,7 @@ def run(self, apps_locations, **options):

retcode = process.poll()
if retcode not in [0]: # normal sloccount return codes
raise subprocess.CalledProcessError(retcode, cmd, output='%s\n%s' % (report_output, err))
raise subprocess.CalledProcessError(retcode, cmd, output='{}\n\n{}'.format(output, err))

output.write(report_output.decode('utf-8'))
output.close()

0 comments on commit 04dec9d

Please sign in to comment.