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

This commit is contained in:
Aman Agrawal
2025-08-22 11:03:51 +05:30
committed by Tim Abbott
parent 5ef6852cfe
commit b771f92ea1

View File

@@ -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)