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: v0.2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=97a691c01adb5ddb80647d85850d051b9b964039;p=pgp-mime.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 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: