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

Commit 8e7c414

Browse files
committed
Fix type error
1 parent 91ce65f commit 8e7c414

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

synapse/handlers/identity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,9 @@ async def bind_email_using_internal_sydent_api(
10341034
"""
10351035
# Extract the domain name from the IS URL as we store IS domains instead of URLs
10361036
id_server = urllib.parse.urlparse(id_server_url).hostname
1037+
if not id_server:
1038+
# We were unable to determine the hostname, bail out
1039+
return
10371040

10381041
# id_server_url is assumed to have no trailing slashes
10391042
url = id_server_url + "/_matrix/identity/internal/bind"

0 commit comments

Comments
 (0)