From 97a691c01adb5ddb80647d85850d051b9b964039 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 16 Apr 2011 19:27:50 -0400 Subject: [PATCH] Raise an exception for unrecognized errors in send_pgp_mime. --- interfaces/email/interactive/send_pgp_mime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/email/interactive/send_pgp_mime.py b/interfaces/email/interactive/send_pgp_mime.py index c19483e..b46eeb4 100644 --- a/interfaces/email/interactive/send_pgp_mime.py +++ b/interfaces/email/interactive/send_pgp_mime.py @@ -601,7 +601,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: -- 2.26.2