summaryrefslogtreecommitdiff
path: root/src/mailman/model/bounce.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/model/bounce.py')
-rw-r--r--src/mailman/model/bounce.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/model/bounce.py b/src/mailman/model/bounce.py
index c2f22eee9..29a35266e 100644
--- a/src/mailman/model/bounce.py
+++ b/src/mailman/model/bounce.py
@@ -58,7 +58,7 @@ class BounceEvent(Model):
self.email = email
self.timestamp = now()
msgid = msg['message-id']
- if not isinstance(msgid, unicode):
+ if isinstance(msgid, bytes):
msgid = msgid.decode("ascii")
self.message_id = msgid
self.context = (BounceContext.normal if context is None else context)