From d0ceba0fac7bab61c76f49e6958ef31ae76ed361 Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Fri, 3 May 2024 21:14:36 -0300 Subject: [PATCH] Update .pre-commit-config.yaml --- supabase_auth/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supabase_auth/helpers.py b/supabase_auth/helpers.py index 0c9a0613..0de0bdff 100644 --- a/supabase_auth/helpers.py +++ b/supabase_auth/helpers.py @@ -103,8 +103,8 @@ def parse_sso_response(data: Any) -> SSOResponse: def get_error_message(error: Any) -> str: props = ["msg", "message", "error_description", "error"] - filter = ( - lambda prop: prop in error if isinstance(error, dict) else hasattr(error, prop) + filter = lambda prop: ( + prop in error if isinstance(error, dict) else hasattr(error, prop) ) return next((error[prop] for prop in props if filter(prop)), str(error))