Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

invoice_plan: Don't test an Optional value using implicit truthiness.

Prakhar Pratyush01516ef51274
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 5102ac4a1a6..ce14289b661 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