Convert to str before joining
This commit is contained in:
parent
f4e84f62a4
commit
690952156d
1 changed files with 5 additions and 1 deletions
|
@ -95,7 +95,11 @@ def handle_webhook(request):
|
||||||
(tax_id_obj.value, stripe_customer.user.email if stripe_customer else "unknown"),
|
(tax_id_obj.value, stripe_customer.user.email if stripe_customer else "unknown"),
|
||||||
'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,
|
'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,
|
||||||
'to': settings.DCL_ERROR_EMAILS_TO_LIST,
|
'to': settings.DCL_ERROR_EMAILS_TO_LIST,
|
||||||
'body': "The following objects were modified:\n".join(b_addresses).join(ub_addresses),
|
'body': "The following objects were modified:\n".join(
|
||||||
|
'\n'.join([str(b_address) for b_address in b_addresses])
|
||||||
|
).join(
|
||||||
|
'\n'.join([str(ub_address) for ub_address in ub_addresses])
|
||||||
|
),
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
logger.debug("Tax_id %s is %s" % (tax_id_obj.id,
|
logger.debug("Tax_id %s is %s" % (tax_id_obj.id,
|
||||||
|
|
Loading…
Reference in a new issue