From 01516ef51274ff350f8b350fd66aaa57c0d36fcf Mon Sep 17 00:00:00 2001 From: Prakhar Pratyush Date: Thu, 7 Mar 2024 17:07:45 +0530 Subject: [PATCH] invoice_plan: Don't test an Optional value using implicit truthiness. --- corporate/lib/stripe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py index 5102ac4a1a..ce14289b66 100644 --- a/corporate/lib/stripe.py +++ b/corporate/lib/stripe.py @@ -2793,7 +2793,7 @@ class BillingSession(ABC): } description = f"{plan.name} - renewal" elif licenses_base is not None and ledger_entry.licenses != licenses_base: - assert plan.price_per_license + assert plan.price_per_license is not None last_ledger_entry_renewal = ( LicenseLedger.objects.filter( plan=plan, is_renewal=True, event_time__lte=ledger_entry.event_time