zulip/corporate
PIG208 dcbb2a78ca python: Migrate most json_error => JsonableError.
JsonableError has two major benefits over json_error:
* It can be raised from anywhere in the codebase, rather than
  being a return value, which is much more convenient for refactoring,
  as one doesn't potentially need to change error handling style when
  extracting a bit of view code to a function.
* It is guaranteed to contain the `code` property, which is helpful
  for API consistency.

Various stragglers are not updated because JsonableError requires
subclassing in order to specify custom data or HTTP status codes.
2021-06-30 16:22:38 -07:00
..
lib billing: Move exempt_from_from_license_number_check to Customer model. 2021-06-18 14:05:42 -07:00
management billing: Do subscription management in-house instead of with Stripe Billing. 2018-12-22 13:39:30 -08:00
migrations billing: Move exempt_from_from_license_number_check to Customer model. 2021-06-18 14:05:42 -07:00
tests billing: Create is_sponsored_realm function. 2021-06-14 16:49:53 -07:00
__init__.py
models.py billing: Document model fields that are not self explanatory. 2021-06-28 21:44:16 -07:00
urls.py billing: Use PATCH request for changing plan status. 2021-05-14 15:10:02 -07:00
views.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00