Skip to content
Snippets Groups Projects
Commit 3df8d518 authored by Mark Sapiro's avatar Mark Sapiro
Browse files

Ensure the held message subject is a string.

parent 49158a23
No related branches found
No related tags found
Loading
......@@ -79,7 +79,8 @@ def hold_message(mlist, msg, msgdata=None, reason=None):
msgdata['_mod_message_id'] = message_id
msgdata['_mod_listid'] = mlist.list_id
msgdata['_mod_sender'] = msg.sender
msgdata['_mod_subject'] = msg.get('subject', _('(no subject)'))
# The subject can sometimes be a Header instance. Stringify it.
msgdata['_mod_subject'] = str(msg.get('subject', _('(no subject)')))
msgdata['_mod_reason'] = reason
msgdata['_mod_hold_date'] = now().isoformat()
# Now hold this request. We'll use the message_id as the key.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment