fix: ignore invalid token so auth hooks can apply

The error will still be raised some 2-3 lines of execution later
This commit is contained in:
Ankush Menat 2023-11-20 10:16:29 +05:30
parent da5b723939
commit 17ff6998da

View file

@ -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):