diff options
author | W. Trevor King <wking@drexel.edu> | 2009-09-26 13:49:26 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-09-26 13:49:26 -0400 |
commit | e35ccf95ea89b6e622202caae30d3b8cca3f2473 (patch) | |
tree | 478005f6a1b16935146dd4418492904f9f15bd05 /interfaces/email | |
parent | 3fc33c5c19236e605f75566543ee2f315b2d2b07 (diff) | |
download | bugseverywhere-e35ccf95ea89b6e622202caae30d3b8cca3f2473.tar.gz |
Set self.ret if necessary in be-handle-mail.Command.response_msg().
If an exception is raised during command exection, self.ret may be
left at None.
Diffstat (limited to 'interfaces/email')
-rwxr-xr-x | interfaces/email/interactive/be-handle-mail | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail index 0816dec..fa80698 100755 --- a/interfaces/email/interactive/be-handle-mail +++ b/interfaces/email/interactive/be-handle-mail @@ -265,6 +265,7 @@ class Command (object): raise self.err return (self.ret, self.stdout, self.stderr) def response_msg(self): + if self.ret == None: self.ret = -1 response_body = [u"Results of running: (exit code %d)" % self.ret, u" %s %s" % (self.command, u" ".join(self.args))] if self.stdout != None and len(self.stdout) > 0: |