Skip to content

Commit

Permalink
Update .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco committed May 4, 2024
1 parent e2470f0 commit d0ceba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions supabase_auth/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit d0ceba0

Please sign in to comment.