From fefbaeb143c958a3e4d39724be189be4f01efffb Mon Sep 17 00:00:00 2001 From: Renaud Boyer Date: Sun, 6 Dec 2020 18:00:06 +0100 Subject: [PATCH] linting --- app/paddle_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/paddle_utils.py b/app/paddle_utils.py index c0c3af59..556900b9 100644 --- a/app/paddle_utils.py +++ b/app/paddle_utils.py @@ -95,7 +95,7 @@ def change_plan(subscription_id: str, plan_id) -> (bool, str): # "unable to complete the resubscription because we could not charge the customer for the resubscription" if res["error"]["code"] == 147: return False, "Your card cannot be charged" - except: + except KeyError: LOG.exception( f"cannot change subscription {subscription_id} to {plan_id}, paddle response: {res}" )