Commit e7462289 authored by PCoder's avatar PCoder

Just log IncompleteSubscription does not exist error

Do not compare with db and send admin error message
parent 9b84461a
...@@ -197,8 +197,9 @@ def handle_webhook(request): ...@@ -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",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment