From 933257520d63aac7ab4112fd915206d389fc42a1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 16 Apr 2011 19:27:50 -0400 Subject: 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(-) (limited to 'interfaces/email/interactive') 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: -- cgit