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
3cc8efa10f
commit
ef7c46a686
1 changed files with 1 additions and 1 deletions
|
@ -542,7 +542,7 @@ def refund_premium(request):
|
|||
user = User.objects.get(pk=user_id)
|
||||
try:
|
||||
refunded = user.profile.refund_premium(partial=partial)
|
||||
except stripe.InvalidRequestError as e:
|
||||
except stripe.error.InvalidRequestError as e:
|
||||
refunded = e
|
||||
except PayPalAPIResponseError as e:
|
||||
refunded = e
|
||||
|
|
Loading…
Add table
Reference in a new issue