[Checkins] SVN: keas.build/trunk/src/keas/build/base.py handle no standard error or output.
Paul Carduner
paulcarduner at gmail.com
Fri Oct 2 01:35:36 EDT 2009
Log message for revision 104726:
handle no standard error or output.
Changed:
U keas.build/trunk/src/keas/build/base.py
-=-
Modified: keas.build/trunk/src/keas/build/base.py
===================================================================
--- keas.build/trunk/src/keas/build/base.py 2009-10-02 05:25:06 UTC (rev 104725)
+++ keas.build/trunk/src/keas/build/base.py 2009-10-02 05:35:36 UTC (rev 104726)
@@ -43,11 +43,15 @@
cmd, stdout=stdout, stderr=stderr,
shell=True, cwd=cwd)
stdout, stderr = p.communicate()
+ if stdout is None:
+ stdout = "See output above"
+ if stderr is None:
+ stderr = "See output above"
if p.returncode != 0:
logger.error(u'An error occurred while running command: %s' %cmd)
- logger.error('Error Output: \n' + stderr)
+ logger.error('Error Output: \n%s' % stderr)
sys.exit(p.returncode)
- logger.debug('Output: \n' + stdout)
+ logger.debug('Output: \n%s' % stdout)
return stdout
def getInput(prompt, default, useDefaults):
More information about the checkins
mailing list