From: W. Trevor King Date: Sat, 16 Apr 2011 23:27:50 +0000 (-0400) Subject: Raise an exception for unrecognized errors in send_pgp_mime. X-Git-Tag: 1.1.0~209 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=933257520d63aac7ab4112fd915206d389fc42a1;p=be.git Raise an exception for unrecognized errors in send_pgp_mime. --- diff --git a/interfaces/email/interactive/send_pgp_mime.py b/interfaces/email/interactive/send_pgp_mime.py index 2e6c487..05df473 100644 --- a/interfaces/email/interactive/send_pgp_mime.py +++ b/interfaces/email/interactive/send_pgp_mime.py @@ -603,7 +603,7 @@ if __name__ == '__main__': elif options.mode == "plain": bodymsg = m.plain() else: - print "Unrecognized mode '%s'" % options.mode + raise Exception("unrecognized mode '%s'" % options.mode) message = attach_root(headermsg, bodymsg) if options.output == True: