mirror of
https://github.com/jazzband/django-discover-jenkins.git
synced 2026-05-23 22:55:53 +00:00
Use string formatting so that the CalledProcessError doesn't cause a TypeError when output is None
This commit is contained in:
parent
4de4cba25f
commit
f3eea00cb4
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ class Task(object):
|
|||
output, err = process.communicate()
|
||||
retcode = process.poll()
|
||||
if retcode not in [0, 2]: # normal jshint return codes
|
||||
raise CalledProcessError(retcode, cmd, output=output + '\n' + err)
|
||||
raise CalledProcessError(retcode, cmd, output='%s\n%s' % (output, err))
|
||||
|
||||
self.output.write(output.decode('utf-8'))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue