From e7462289f6b2e532a8e9915ccf4913848cec9c94 Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 1 Jan 2021 01:03:05 +0530 Subject: [PATCH] Just log IncompleteSubscription does not exist error Do not compare with db and send admin error message --- webhook/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webhook/views.py b/webhook/views.py index 2d2ce371..34e668ee 100644 --- a/webhook/views.py +++ b/webhook/views.py @@ -197,8 +197,9 @@ def handle_webhook(request): billing_address_data=billing_address_data, real_request=None ) - except (IncompleteSubscriptions.DoesNotExist, - IncompleteSubscriptions.MultipleObjectsReturned) as ex: + except IncompleteSubscriptions.DoesNotExist as ex: + logger.error(str(ex)) + except IncompleteSubscriptions.MultipleObjectsReturned as ex: logger.error(str(ex)) email_data = { 'subject': "IncompleteSubscriptions error",