From 23031642bd819e0aba24b12c02783ae618ed876a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 21 Jun 2019 12:01:31 +0200 Subject: [PATCH] Fix crash when re-using logged emails Fix PRETIXEU-16Q --- src/pretix/plugins/sendmail/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/sendmail/views.py b/src/pretix/plugins/sendmail/views.py index 6c52759fc..4bcd1bb1d 100644 --- a/src/pretix/plugins/sendmail/views.py +++ b/src/pretix/plugins/sendmail/views.py @@ -40,7 +40,7 @@ class SenderView(EventPermissionRequiredMixin, FormView): action_type='pretix.plugins.sendmail.sent' ) kwargs['initial'] = { - 'recipients': logentry.parsed_data('recipients', 'orders'), + 'recipients': logentry.parsed_data.get('recipients', 'orders'), 'message': LazyI18nString(logentry.parsed_data['message']), 'subject': LazyI18nString(logentry.parsed_data['subject']), 'sendto': logentry.parsed_data['sendto'],