chore: woocommerce linter issue (#36837)

This commit is contained in:
s-aga-r 2023-08-28 00:21:51 +05:30 committed by GitHub
parent 25e78fb311
commit 91927f2ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ def _order(*args, **kwargs):
event = "created"
# Ignore the test ping issued during WooCommerce webhook configuration
# Ref: https://github.com/woocommerce/woocommerce/issues/15642
if frappe.request.data.decode('utf-8').startswith('webhook_id='):
if frappe.request.data.decode("utf-8").startswith("webhook_id="):
return "success"
elif frappe.request and frappe.request.data:
verify_request()