From 7e5cab2cc4db84ad12d61cba133d6646034b78e3 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 28 Oct 2017 22:44:58 +0200 Subject: [PATCH] Fix PEP8 warnings --- membership/models.py | 2 -- utils/stripe_utils.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/membership/models.py b/membership/models.py index 7ebf00ca..ac4dc1ad 100644 --- a/membership/models.py +++ b/membership/models.py @@ -212,8 +212,6 @@ class StripeCustomer(models.Model): stripe_customer.user, token) if "deleted" in customer and customer["deleted"]: raise StripeCustomer.DoesNotExist() - #if not customer.sources.data: - # stripe_utils.update_customer_token(customer, token) return stripe_customer except StripeCustomer.DoesNotExist: user = CustomUser.objects.get(email=email) diff --git a/utils/stripe_utils.py b/utils/stripe_utils.py index 74b6fa4a..2742045a 100644 --- a/utils/stripe_utils.py +++ b/utils/stripe_utils.py @@ -315,4 +315,4 @@ class StripeUtils(object): """ subscription = stripe.Subscription.retrieve(subscription_id) subscription.metadata = meta_data - subscription.save() \ No newline at end of file + subscription.save()