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>
Sat, 16 Apr 2011 23:27:50 +0000 (19:27 -0400)
interfaces/email/interactive/send_pgp_mime.py

index 2e6c4871b6c6138903d564a99fd808afb8e27201..05df473dfe1c24c710cb05800946c5f0c93811dd 100644 (file)
@@ -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: