diff options
author | W. Trevor King <wking@drexel.edu> | 2011-04-16 19:27:50 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2011-04-16 19:27:50 -0400 |
commit | 933257520d63aac7ab4112fd915206d389fc42a1 (patch) | |
tree | 275fe782686de34efbacb287e0fe962f8e780466 /interfaces/email/interactive/send_pgp_mime.py | |
parent | 35db0a3685d04bca521abe8581a0e95c09ce401a (diff) | |
download | bugseverywhere-933257520d63aac7ab4112fd915206d389fc42a1.tar.gz |
Raise an exception for unrecognized errors in send_pgp_mime.
Diffstat (limited to 'interfaces/email/interactive/send_pgp_mime.py')
-rw-r--r-- | interfaces/email/interactive/send_pgp_mime.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |