[FIX] payment_paypal: ignore exception in sentry for missing notification data.
ValidationError: PayPal: Missing value for txn_id (78X739757D473425R) or txn_type (None). This issue occurs when there is some missing value in the received notification_data while evaluating the '_process_notification_data' function. It raises an Exception which will be caught by the sentry. sentry-3954375754 closes odoo/odoo#123191 X-original-commit: 8c539133f374ad709b5ed7770b15a3233e2463b2 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
committed by
Antoine Vandevenne (anv)
parent
41a414de1b
commit
facaa2e0f6
@@ -173,7 +173,9 @@ class PaypalController(http.Controller):
|
||||
# Handle the notification data
|
||||
tx_sudo._handle_notification_data('paypal', data)
|
||||
except ValidationError: # Acknowledge the notification to avoid getting spammed
|
||||
_logger.exception("unable to handle the notification data; skipping to acknowledge")
|
||||
_logger.warning(
|
||||
"unable to handle the notification data; skipping to acknowledge", exc_info=True
|
||||
)
|
||||
return ''
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user