Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: utils.py
- Revision:
- 13:ab47a20b66f0
- Parent:
- 7:5af61d55adbe
- Child:
- 17:04753e1e329d
diff -r f2e8a005c7d3 -r ab47a20b66f0 utils.py
--- 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
