Stripe checkout #104411
@ -92,7 +92,7 @@ def send_mail_subscription_status_changed(subscription_id: int):
|
||||
subscription = looper.models.Subscription.objects.get(pk=subscription_id)
|
||||
customer = subscription.customer
|
||||
user = customer.user
|
||||
email = user.customer.billing_address.email or user.email
|
||||
email = customer.billing_address.email or user.email
|
||||
assert email, f'Cannot send notification about subscription {subscription.pk} status: no email'
|
||||
if is_noreply(email):
|
||||
raise
|
||||
|
Loading…
Reference in New Issue
Block a user