From 1db3843a90b8af70aaeeaef82e4226052b1245d6 Mon Sep 17 00:00:00 2001 From: Bart Date: Mon, 8 Jan 2018 17:14:46 +0100 Subject: [PATCH] CR Fix --- aa_stripe/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aa_stripe/models.py b/aa_stripe/models.py index 41650ab..f9eb831 100644 --- a/aa_stripe/models.py +++ b/aa_stripe/models.py @@ -657,6 +657,7 @@ def _parse_customer_source_notification(self, action): except StripeCustomer.DoesNotExist: raise StripeWebhookParseError( _("There is no customer with id that is assigned to this card in our database")) + if action == "created": try: StripeCard.objects.all_with_deleted().get(stripe_card_id=stripe_card_id, customer=customer)