diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-02-17 08:04:44 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-02-17 08:04:44 -0500 |
commit | 19562207018976258eca632e4ec315443b4a0576 (patch) | |
tree | 701980a66c102ffa1a81756a13e35af92e58a733 | |
parent | c04e8bc107165a6cd49bcf8ee5564b92ed99edd8 (diff) | |
download | korg-helpers-19562207018976258eca632e4ec315443b4a0576.tar.gz |
Make sure we cast the header to string
I'm not sure why Python doesn't just return one or the other, but make
sure it's always a string before we try to operate on it.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | list-archive-collector.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/list-archive-collector.py b/list-archive-collector.py index b0270a5..40ac910 100755 --- a/list-archive-collector.py +++ b/list-archive-collector.py @@ -126,7 +126,7 @@ def lookaside_fillin(msg): 'User-Agent', 'X-Mailer', ] - msgid = msg.get('Message-Id').strip('<>') + msgid = str(msg.get('Message-Id')).strip('<>') lmsg = lore_get_message(msgid) if not lmsg: return False |