mirror of
https://github.com/zulip/zulip.git
synced 2026-06-27 21:01:32 +08:00
stripe: Return 400 error instead of 500 on invalid tier.
This commit is contained in:
parent
5ef6852cfe
commit
b771f92ea1
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user