Catch the OSError on the process failing.

This commit is contained in:
Chris Johns 2013-11-10 12:30:23 +11:00
parent ce0f7a19c3
commit 46dcbfc2bc

View File

@ -88,6 +88,9 @@ class command:
except subprocess.CalledProcessError, cpe:
self.exit_code = cpe.returncode
self.output = cpe.output
except OSError, ose:
raise error.general('bootstrap failed: %s in %s: %s' % \
(' '.join(self.cmd), self.cwd, (str(ose))))
self.end_time = datetime.datetime.now()
def run(self):