Just log IncompleteSubscription does not exist error

Do not compare with db and send admin error message
This commit is contained in:
PCoder 2021-01-01 01:03:05 +05:30
parent 9b84461a29
commit e7462289f6

View file

@ -197,8 +197,9 @@ def handle_webhook(request):
billing_address_data=billing_address_data, billing_address_data=billing_address_data,
real_request=None real_request=None
) )
except (IncompleteSubscriptions.DoesNotExist, except IncompleteSubscriptions.DoesNotExist as ex:
IncompleteSubscriptions.MultipleObjectsReturned) as ex: logger.error(str(ex))
except IncompleteSubscriptions.MultipleObjectsReturned as ex:
logger.error(str(ex)) logger.error(str(ex))
email_data = { email_data = {
'subject': "IncompleteSubscriptions error", 'subject': "IncompleteSubscriptions error",