aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/arch.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-13 13:10:13 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-13 13:10:13 -0500
commitc5d7551e6a6e98bb6da7c7d11360224edfda2f14 (patch)
tree212ac0f61c99e1290a131ca0655a31b5dbfb0eb6 /libbe/arch.py
parent9055757a1b30c55798173f2454de8d4fa0676d40 (diff)
downloadbugseverywhere-c5d7551e6a6e98bb6da7c7d11360224edfda2f14.tar.gz
* use python2.4/2.5 compatible import of ElementTree
* catch Popen() calls to missing VCS binaries * test.py should only test installed backends
Diffstat (limited to 'libbe/arch.py')
-rw-r--r--libbe/arch.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/libbe/arch.py b/libbe/arch.py
index 624aea3..038325a 100644
--- a/libbe/arch.py
+++ b/libbe/arch.py
@@ -24,7 +24,11 @@ if client is None:
config.set_val("arch_client", client)
def invoke(args):
- q = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE)
+ try :
+ q = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE)
+ except OSError, e :
+ strerror = "%s\nwhile executing %s" % (e.args[1], args)
+ raise Exception("Command failed: %s" % strerror)
output = q.stdout.read()
error = q.stderr.read()
status = q.wait()