Clone of official tools

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