{"thread":{"id":"10201","subject":"[StGit PATCH] Fix error message generation","startedAt":"2007-10-09T04:40:57Z","lastAt":"2007-10-09T04:40:57Z","messageCount":1,"participants":["Karl Hasselström"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"55224","messageId":"20071009044045.11981.93951.stgit@yoghurt","threadId":"10201","inReplyTo":null,"subject":"[StGit PATCH] Fix error message generation","fromName":"Karl Hasselström","fromEmail":"kha@treskal.com","sentAt":"2007-10-09T04:40:57Z","receivedAt":"2007-10-09T04:40:57Z","isPatch":true,"sender":{"key":"kha@treskal.com","avatar":"https://gravatar.com/avatar/f0120c734b5279b345075a28521e1ac66acb20c9913ffe9bf6ae97e53f7f3f13?d=mp&s=160"},"body":"The right-hand-side operand of % is supposed to be a tuple with the\nsame number of arguments as there are formatting codes in the\nleft-hand-side operand, or just any value if there is just one\nformatting code; however, here it was a variable with a tuple value,\nwhich didn't work. So wrap it in a tuple of length one, and all is\nwell again.\n\nSigned-off-by: Karl Hasselström <kha@treskal.com>\n\n---\n\n stgit/run.py |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\n\ndiff --git a/stgit/run.py b/stgit/run.py\nindex 989bb27..83bf5f5 100644\n--- a/stgit/run.py\n+++ b/stgit/run.py\n@@ -40,7 +40,7 @@ class Run:\n         self.__cmd = list(cmd)\n         for c in cmd:\n             if type(c) != str:\n-                raise Exception, 'Bad command: %r' % cmd\n+                raise Exception, 'Bad command: %r' % (cmd,)\n         self.__good_retvals = [0]\n         self.__env = None\n         self.__indata = None\n"}]}