Handle any exception

This commit is contained in:
PCoder 2020-12-31 17:02:03 +05:30
parent ff7b20b0dc
commit 7309b8416c
1 changed files with 2 additions and 1 deletions

View File

@ -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 = {