aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-19 08:48:33 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-19 08:48:33 -0500
commita3b0c3e2b90c392279208416eb6a603dae4a9b7a (patch)
tree133ffe84ba432052c44f4f432ed564307c3bf235
parentbcb526c0c8c48cfdcd34765198642b06d915114e (diff)
downloadbugseverywhere-a3b0c3e2b90c392279208416eb6a603dae4a9b7a.tar.gz
Generate string properly in libbe.util.subproc.CommandError
-rw-r--r--libbe/util/subproc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/util/subproc.py b/libbe/util/subproc.py
index 6ca1e80..b02b8e8 100644
--- a/libbe/util/subproc.py
+++ b/libbe/util/subproc.py
@@ -36,7 +36,7 @@ if _POSIX == True:
class CommandError(Exception):
def __init__(self, command, status, stdout=None, stderr=None):
strerror = ['Command failed (%d):\n %s\n' % (status, stderr),
- 'while executing\n %s' % command]
+ 'while executing\n %s' % str(command)]
Exception.__init__(self, '\n'.join(strerror))
self.command = command
self.status = status