From b441237f7c241ddfa7d900dc6c780adfdc4113d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 31 Mar 2019 00:01:09 +0100 Subject: [PATCH] Use string to format URL instead of bytes Bytes formatting is not supported by Python3.4 --- marketing_automation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/marketing_automation.py b/marketing_automation.py index df84088b7a..ebde24b193 100644 --- a/marketing_automation.py +++ b/marketing_automation.py @@ -514,9 +514,9 @@ class Activity(ModelSQL, ModelView): def unsubscribe(redirect): parts = urlsplit(urljoin( - URL_BASE, quote(b'/m/%(database)s/unsubscribe' % { - b'database': Base64Converter(None).to_url( - Transaction().database.name), + URL_BASE, quote('/m/%(database)s/unsubscribe' % { + 'database': Base64Converter(None).to_url( + Transaction().database.name).decode('utf-8'), }))) query = parse_qsl(parts.query) query.append(('r', record.uuid))