Clone of official tools
Diff: utils.py
- Revision:
- 13:ab47a20b66f0
- Parent:
- 7:5af61d55adbe
- Child:
- 17:04753e1e329d
--- a/utils.py Tue Jun 14 11:33:06 2016 +0100 +++ b/utils.py Thu Jul 14 20:21:19 2016 +0100 @@ -38,9 +38,10 @@ try: p = Popen(command, stdout=PIPE, stderr=STDOUT if redirect else PIPE, cwd=wd) _stdout, _stderr = p.communicate() - except: + except OSError as e: print "[OS ERROR] Command: "+(' '.join(command)) raise + return _stdout, _stderr, p.returncode