diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-19 15:53:40 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-19 15:53:40 -0400 |
commit | b45c5006dc8746f6dd22cdcc59be7f51084f4d6f (patch) | |
tree | b51ad931195c5efa97841b9524ec07952581e637 /interfaces/email/interactive/be-handle-mail | |
parent | 396b2ab5e79be869f66fad3833f107e54f6fa3ef (diff) | |
download | bugseverywhere-b45c5006dc8746f6dd22cdcc59be7f51084f4d6f.tar.gz |
Fixed typos in be-handle-mail error message generation
Diffstat (limited to 'interfaces/email/interactive/be-handle-mail')
-rwxr-xr-x | interfaces/email/interactive/be-handle-mail | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail index e532b1d..3ede690 100755 --- a/interfaces/email/interactive/be-handle-mail +++ b/interfaces/email/interactive/be-handle-mail @@ -117,7 +117,7 @@ class InvalidPseudoHeader (InvalidEmail): class InvalidCommand (InvalidEmail): def __init__(self, msg, command, message=None): bigmessage = u"Invalid execution command '%s'" % command - if message == None: + if message != None: bigmessage += u"\n%s" % message InvalidEmail.__init__(self, msg, bigmessage) self.command = command @@ -125,7 +125,7 @@ class InvalidCommand (InvalidEmail): class InvalidOption (InvalidCommand): def __init__(self, msg, option, message=None): bigmessage = u"Invalid option '%s'" % (option) - if message == None: + if message != None: bigmessage += u"\n%s" % message InvalidCommand.__init__(self, msg, info, command, bigmessage) self.option = option @@ -190,9 +190,9 @@ class Command (object): command. """ if self.command in [None, u""]: # don't accept blank commands - raise InvalidCommand(self.msg, self) + raise InvalidCommand(self.msg, self, "Blank") elif self.command not in ALLOWED_COMMANDS: - raise InvalidCommand(self.msg, self) + raise InvalidCommand(self.msg, self, "Not allowed") assert self.ret == None, u"running %s twice!" % unicode(self) self.normalize_args() # set stdin and catch stdout and stderr |