From a3b0c3e2b90c392279208416eb6a603dae4a9b7a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 19 Jan 2010 08:48:33 -0500 Subject: [PATCH] Generate string properly in libbe.util.subproc.CommandError --- libbe/util/subproc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2