[Treepkg-commits] r301 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Apr 26 12:12:36 CEST 2010
Author: bricks
Date: 2010-04-26 12:12:35 +0200 (Mon, 26 Apr 2010)
New Revision: 301
Modified:
trunk/treepkg/run.py
Log:
catch OSErrors if some programs are not installed
Modified: trunk/treepkg/run.py
===================================================================
--- trunk/treepkg/run.py 2010-04-26 09:33:58 UTC (rev 300)
+++ trunk/treepkg/run.py 2010-04-26 10:12:35 UTC (rev 301)
@@ -46,7 +46,10 @@
if inputdata is not None:
process.stdin.write(inputdata)
process.stdin.close()
- ret = process.wait()
+ try:
+ ret = process.wait()
+ except OSError,e:
+ raise SubprocessError(command, e.errno, e.strerror)
if ret != 0:
raise SubprocessError(command, ret)
More information about the Treepkg-commits
mailing list