mirror of https://github.com/kivy/kivy.git
Just added the situation an returncode was raised but no content is in stderr
This commit is contained in:
parent
0ab5d1b65e
commit
9ff8cbccc7
4
setup.py
4
setup.py
|
@ -25,7 +25,9 @@ def getoutput(cmd):
|
|||
p.wait()
|
||||
if p.returncode: # if not returncode == 0
|
||||
print('WARNING: A problem occured while running {0} (code {1})\n'.format(cmd,p.returncode))
|
||||
print('{0}'.format(p.stderr.read()))
|
||||
stderr_content = p.stderr.read()
|
||||
if stderr_content:
|
||||
print('{0}\n'.format(stderr_content))
|
||||
return ""
|
||||
return p.stdout.read()
|
||||
|
||||
|
|
Loading…
Reference in New Issue