Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Do not use a deprecated function.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Nov 24, 2020
1 parent 1934c10 commit 89f1869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/handlers/oidc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,10 +867,10 @@ async def _map_userinfo_to_user(

# Older mapping providers don't accept the `failures` argument, so we
# try and detect support.
mapper_args = inspect.getfullargspec(
mapper_signature = inspect.signature(
self._user_mapping_provider.map_user_attributes
)
supports_failures = "failures" in mapper_args.args
supports_failures = "failures" in mapper_signature.parameters

async def oidc_response_to_user_attributes(failures: int) -> UserAttributes:
"""
Expand Down

0 comments on commit 89f1869

Please sign in to comment.