Raise an exception for unrecognized errors in send_pgp_mime.
authorW. Trevor King <wking@drexel.edu>
Sat, 16 Apr 2011 23:27:50 +0000 (19:27 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 20 Mar 2012 21:21:18 +0000 (17:21 -0400)
interfaces/email/interactive/send_pgp_mime.py

index c19483ef157f609ae1178708f749cd8436b57c1e..b46eeb41b868d534d0501cb9ee739ea3b117acc8 100644 (file)
@@ -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: