diff options
author | tkikuchi <> | 2005-04-25 04:48:02 +0000 |
---|---|---|
committer | tkikuchi <> | 2005-04-25 04:48:02 +0000 |
commit | 1fa0a12636fcf0b29a80b89064e57b92ea8e7789 (patch) | |
tree | b9a66f3ee497b78e025bf771a39cf2fdb53ac60d | |
parent | 8595f3a23328946d8d6b780bc410712f6f485d97 (diff) | |
download | mailman2-1fa0a12636fcf0b29a80b89064e57b92ea8e7789.tar.gz mailman2-1fa0a12636fcf0b29a80b89064e57b92ea8e7789.tar.xz mailman2-1fa0a12636fcf0b29a80b89064e57b92ea8e7789.zip |
Add TypeError for possible error when checking charset availablity.
-rw-r--r-- | Mailman/Message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Message.py b/Mailman/Message.py index 4589b75a..6399a169 100644 --- a/Mailman/Message.py +++ b/Mailman/Message.py @@ -202,7 +202,7 @@ class Message(email.Message.Message): # Check if charset is supported. try: unicode('x', charset) - except (LookupError, ValueError): + except (LookupError, ValueError, TypeError): return failobj return charset |