Skip to content

Commit

Permalink
stripe: Remove invalid comment.
Browse files Browse the repository at this point in the history
We use `error_description` in upgrade.ts to determine if the error was
related to customer's card. Doesn't seem like there is any harm
in doing so since we are explicitly handling "stripe.CardError" and
raising these errors with "card error" description.
  • Loading branch information
amanagr authored and timabbott committed Apr 22, 2024
1 parent 6d4541a commit 2d824e8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion corporate/lib/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ class BillingError(JsonableError):
CONTACT_SUPPORT = gettext_lazy("Something went wrong. Please contact {email}.")
TRY_RELOADING = gettext_lazy("Something went wrong. Please reload the page.")

# description is used only for tests
def __init__(self, description: str, message: Optional[str] = None) -> None:
self.error_description = description
if message is None:
Expand Down

0 comments on commit 2d824e8

Please sign in to comment.