From 6f1bf4e7fc9989ef9de0f1c0dc93dddfdd17b11e Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 20 Mar 2018 10:19:54 +0100 Subject: [PATCH] Attempt another unicode fix in paypal reports --- postgresqleu/paypal/management/commands/paypal_report.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postgresqleu/paypal/management/commands/paypal_report.py b/postgresqleu/paypal/management/commands/paypal_report.py index c4bad0b..349d0de 100644 --- a/postgresqleu/paypal/management/commands/paypal_report.py +++ b/postgresqleu/paypal/management/commands/paypal_report.py @@ -3,7 +3,7 @@ # integration, as well as a list of any unmatched payments still in # the system. # -# Copyright (C) 2010-2016, PostgreSQL Europe +# Copyright (C) 2010-2018, PostgreSQL Europe # from django.core.management.base import BaseCommand, CommandError @@ -20,11 +20,11 @@ class Command(BaseCommand): def handle(self, *args, **options): entries = ErrorLog.objects.filter(sent=False).order_by('id') if len(entries): - msg = """ + msg = u""" Events reported by the paypal integration: {0} -""".format("\n".join(["{0}: {1}".format(e.timestamp, e.message) for e in entries])) +""".format("\n".join([u"{0}: {1}".format(e.timestamp, e.message) for e in entries])) send_simple_mail(settings.INVOICE_SENDER_EMAIL, settings.PAYPAL_REPORT_RECEIVER, -- 2.39.5