Generate string properly in libbe.util.subproc.CommandError
authorW. Trevor King <wking@drexel.edu>
Tue, 19 Jan 2010 13:48:33 +0000 (08:48 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 19 Jan 2010 13:48:33 +0000 (08:48 -0500)
libbe/util/subproc.py

index 6ca1e808aa252972bcc2a58d02de6d3eeb21b66e..b02b8e884ba320d70f338f7f6806c032afa0b430 100644 (file)
@@ -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