diff options
author | Quentin Gliech <quenting@element.io> | 2024-07-08 13:27:44 +0200 |
---|---|---|
committer | Quentin Gliech <quenting@element.io> | 2024-07-08 13:27:44 +0200 |
commit | 2ff5321ef172f7f5b17f6ec001c0073c13eeee6b (patch) | |
tree | 33016d4cc9167f001a988860ce4bbb2c9f12d9a6 | |
parent | Import `cast` from `typing` instead of `typing_extensions`. (diff) | |
download | synapse-2ff5321ef172f7f5b17f6ec001c0073c13eeee6b.tar.xz |
Fix loading the account management URL from the issuer
-rw-r--r-- | synapse/api/auth/msc3861_delegated.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/auth/msc3861_delegated.py b/synapse/api/auth/msc3861_delegated.py index 92ad41dbab..cc55be40d8 100644 --- a/synapse/api/auth/msc3861_delegated.py +++ b/synapse/api/auth/msc3861_delegated.py @@ -175,7 +175,7 @@ class MSC3861DelegatedAuth(BaseAuth): try: metadata = await self._load_metadata() - return metadata.account_management_uri + return metadata.get("account_management_uri", None) # We don't want to raise here if we can't load the metadata except Exception: logger.warning("Failed to load metadata:", exc_info=True) |