Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
refactor: Make `UserProfile` field optional for `get_billing_info`.
Riken Shah5fe21ae08fea
diff --git a/zerver/lib/home.py b/zerver/lib/home.pyindex 8063ab2434a..0c4cbcf21f7 100644--- a/zerver/lib/home.py+++ b/zerver/lib/home.py@@ -72,7 +72,7 @@ def promote_sponsoring_zulip_in_realm(realm: Realm) -> bool:return realm.plan_type in [Realm.STANDARD_FREE, Realm.SELF_HOSTED]-def get_billing_info(user_profile: UserProfile) -> BillingInfo:+def get_billing_info(user_profile: Optional[UserProfile]) -> BillingInfo:show_billing = Falseshow_plans = Falseif settings.CORPORATE_ENABLED and user_profile is not None: