Show only error message
This commit is contained in:
parent
74921fcd4a
commit
c142d743d1
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def handleStripeError(f):
|
||||||
return response
|
return response
|
||||||
except stripe.error.InvalidRequestError as e:
|
except stripe.error.InvalidRequestError as e:
|
||||||
logger.error(str(e))
|
logger.error(str(e))
|
||||||
response.update({'error': str(e)})
|
response.update({'error': str(e._message)})
|
||||||
return response
|
return response
|
||||||
except stripe.error.AuthenticationError as e:
|
except stripe.error.AuthenticationError as e:
|
||||||
# Authentication with Stripe's API failed
|
# Authentication with Stripe's API failed
|
||||||
|
|
Loading…
Reference in a new issue