projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35db0a3
)
Raise an exception for unrecognized errors in send_pgp_mime.
author
W. Trevor King
<wking@drexel.edu>
Sat, 16 Apr 2011 23:27:50 +0000
(19:27 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Sat, 16 Apr 2011 23:27:50 +0000
(19:27 -0400)
interfaces/email/interactive/send_pgp_mime.py
patch
|
blob
|
history
diff --git
a/interfaces/email/interactive/send_pgp_mime.py
b/interfaces/email/interactive/send_pgp_mime.py
index 2e6c4871b6c6138903d564a99fd808afb8e27201..05df473dfe1c24c710cb05800946c5f0c93811dd 100644
(file)
--- 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: