Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 13, 2024
1 parent 3fb334e commit 6d9b1b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions social_core/pipeline/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def user_details(strategy, details, backend, user=None, *args, **kwargs):
"is_superuser",
)

protected = protected + tuple(strategy.setting("PROTECTED_USER_FIELDS", [], backend=backend))
protected = protected + tuple(
strategy.setting("PROTECTED_USER_FIELDS", [], backend=backend)
)

# Update user model attributes with the new data sent by the current
# provider. Update on some attributes is disabled by default, for
Expand All @@ -113,7 +115,9 @@ def user_details(strategy, details, backend, user=None, *args, **kwargs):
if current_value == value:
continue

immutable_fields = tuple(strategy.setting("IMMUTABLE_USER_FIELDS", [], backend=backend))
immutable_fields = tuple(
strategy.setting("IMMUTABLE_USER_FIELDS", [], backend=backend)
)
if name in immutable_fields and current_value:
continue

Expand Down

0 comments on commit 6d9b1b5

Please sign in to comment.