X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/875efc3090b43807d41438a98f3e84ceafecab51..f177dd0cdb753827bd208960a159d1bbbaae9e80:/src/contact/mailing.py diff --git a/src/contact/mailing.py b/src/contact/mailing.py index 2d578e66d..baacf3def 100644 --- a/src/contact/mailing.py +++ b/src/contact/mailing.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from hashlib import md5 from django.conf import settings @@ -8,7 +6,7 @@ from mailchimp3.mailchimpclient import MailChimpError def subscriber_hash(email): - return md5(email).hexdigest() + return md5(email.encode('utf-8')).hexdigest() def remove_from_groups(email, client):