Handle any exception

This commit is contained in:
PCoder 2020-12-31 17:02:03 +05:30
parent ff7b20b0dc
commit 7309b8416c

View file

@ -287,7 +287,8 @@ def handle_webhook(request):
) )
incomplete_pm.save() incomplete_pm.save()
except (IncompletePaymentIntents.DoesNotExist, except (IncompletePaymentIntents.DoesNotExist,
IncompletePaymentIntents.MultipleObjectsReturned) as ex: IncompletePaymentIntents.MultipleObjectsReturned,
Exception) as ex:
logger.error(str(ex)) logger.error(str(ex))
logger.debug(str(ex)) logger.debug(str(ex))
email_data = { email_data = {