mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Handling new Stripe api errors.
This commit is contained in:
parent
ef7c46a686
commit
0af696df90
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ class Profile(models.Model):
|
|||
stripe_customer = stripe.Customer.retrieve(self.stripe_id)
|
||||
try:
|
||||
stripe_customer.cancel_subscription()
|
||||
except stripe.InvalidRequestError:
|
||||
except stripe.error.InvalidRequestError:
|
||||
logging.user(self.user, "~FRFailed to cancel Stripe subscription")
|
||||
|
||||
logging.user(self.user, "~FRCanceling Stripe subscription")
|
||||
|
|
Loading…
Add table
Reference in a new issue