From 7309b8416ce934ce7be9439f62be35cf7b6bdef9 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 31 Dec 2020 17:02:03 +0530 Subject: [PATCH] Handle any exception --- webhook/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webhook/views.py b/webhook/views.py index 7e297944..318b9b35 100644 --- a/webhook/views.py +++ b/webhook/views.py @@ -287,7 +287,8 @@ def handle_webhook(request): ) incomplete_pm.save() except (IncompletePaymentIntents.DoesNotExist, - IncompletePaymentIntents.MultipleObjectsReturned) as ex: + IncompletePaymentIntents.MultipleObjectsReturned, + Exception) as ex: logger.error(str(ex)) logger.debug(str(ex)) email_data = {