diff options
| author | Barry Warsaw | 2017-08-29 22:51:58 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2017-08-29 22:51:58 -0400 |
| commit | 057bc0704ab6d975e327c11cac204decfb478c4d (patch) | |
| tree | 9c22f42b28dd6818188fe6ecf5aefb53c192d503 /src/mailman/rest/post_moderation.py | |
| parent | de8c204fa40f0c4677a1b73b2ee7e3e86ce93a9c (diff) | |
| download | mailman-master.tar.gz mailman-master.tar.zst mailman-master.zip | |
Diffstat (limited to 'src/mailman/rest/post_moderation.py')
| -rw-r--r-- | src/mailman/rest/post_moderation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/rest/post_moderation.py b/src/mailman/rest/post_moderation.py index a747917de..b972bed53 100644 --- a/src/mailman/rest/post_moderation.py +++ b/src/mailman/rest/post_moderation.py @@ -95,7 +95,7 @@ class _HeldMessageBase(_ModerationBase): # Store the original header and then try decoding it. resource['original_subject'] = resource['subject'] # If we can't decode the header, leave the subject unchanged. - with suppress(LookupError, MessageError): + with suppress(LookupError, MessageError, UnicodeDecodeError): resource['subject'] = str( make_header(decode_header(resource['subject']))) # Also, held message resources will always be this type, so ignore |
