From 17ff6998dabc78ab9c489f263b48b238dcd950e3 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 20 Nov 2023 10:16:29 +0530 Subject: [PATCH] fix: ignore invalid token so auth hooks can apply The error will still be raised some 2-3 lines of execution later --- frappe/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/auth.py b/frappe/auth.py index f3fbe272c5..941edb9277 100644 --- a/frappe/auth.py +++ b/frappe/auth.py @@ -647,7 +647,7 @@ def validate_auth_via_api_keys(authorization_header): frappe.InvalidAuthorizationToken, ) except (AttributeError, TypeError, ValueError): - raise frappe.AuthenticationError + pass def validate_api_key_secret(api_key, api_secret, frappe_authorization_source=None):