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.

stripe: Return 400 error instead of 500 on invalid tier.

Aman Agrawalb771f92ea144
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index a8470b172ab..5473fa5b325 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -452,7 +452,7 @@ class InvalidBillingScheduleError(Exception):
super().__init__(self.message)
-class InvalidTierError(Exception):
+class InvalidTierError(JsonableError):
def __init__(self, tier: int) -> None:
self.message = f"Unknown tier: {tier}"
super().__init__(self.message)