From: W. Trevor King Date: Tue, 19 Jan 2010 13:48:33 +0000 (-0500) Subject: Generate string properly in libbe.util.subproc.CommandError X-Git-Tag: 1.0.0~59^2~47^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a3b0c3e2b90c392279208416eb6a603dae4a9b7a;p=be.git Generate string properly in libbe.util.subproc.CommandError --- 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