From c142d743d1677cb40bc419c4a492ac545fd4199e Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 26 Dec 2019 20:25:07 +0530 Subject: [PATCH] Show only error message --- utils/stripe_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/stripe_utils.py b/utils/stripe_utils.py index 4030317e..d4b71f8c 100644 --- a/utils/stripe_utils.py +++ b/utils/stripe_utils.py @@ -37,7 +37,7 @@ def handleStripeError(f): return response except stripe.error.InvalidRequestError as e: logger.error(str(e)) - response.update({'error': str(e)}) + response.update({'error': str(e._message)}) return response except stripe.error.AuthenticationError as e: # Authentication with Stripe's API failed