Fix crash in send_expiry_warnings

This commit is contained in:
Raphael Michel
2023-09-08 12:35:02 +02:00
parent 171b1de0c4
commit 1478f191a8

View File

@@ -1297,6 +1297,7 @@ def send_expiry_warnings(sender, **kwargs):
if (
lp and
lp.state in [OrderPayment.PAYMENT_STATE_CREATED, OrderPayment.PAYMENT_STATE_PENDING] and
lp.payment_provider and
lp.payment_provider.prevent_reminder_mail(o, lp)
):
continue