add safe fallback for attendee_name_parts being None

This commit is contained in:
Richard Schreiber
2022-05-10 11:18:57 +02:00
committed by GitHub
parent 6da65ab13e
commit ed1a2dd57f
+1 -1
View File
@@ -551,7 +551,7 @@ def get_variables(event):
v['attendee_name_for_salutation'] = {
'label': _("Attendee name for salutation"),
'editor_sample': _("Mr Doe"),
'evaluate': lambda op, order, ev: concatenation_for_salutation(op.attendee_name_parts)
'evaluate': lambda op, order, ev: concatenation_for_salutation(op.attendee_name_parts or {})
}
for key, label, weight in scheme['fields']: