summary refs log tree commit diff
path: root/synapse/handlers/identity.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-21 15:43:15 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-21 15:43:15 +0100
commit8e7c4143b2dd0f9d42de8964ac46fe77f638dad0 (patch)
treeaf736589d05ccde768ed03c0b25eab92a1f41fc5 /synapse/handlers/identity.py
parentMerge commit '9b8a53c7b' into anoa/dinsic_release_1_21_x (diff)
downloadsynapse-8e7c4143b2dd0f9d42de8964ac46fe77f638dad0.tar.xz
Fix type error
Diffstat (limited to 'synapse/handlers/identity.py')
-rw-r--r--synapse/handlers/identity.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py
index efc68cb9b4..c5ff072d5a 100644
--- a/synapse/handlers/identity.py
+++ b/synapse/handlers/identity.py
@@ -1034,6 +1034,9 @@ class IdentityHandler(BaseHandler):
         """
         # Extract the domain name from the IS URL as we store IS domains instead of URLs
         id_server = urllib.parse.urlparse(id_server_url).hostname
+        if not id_server:
+            # We were unable to determine the hostname, bail out
+            return
 
         # id_server_url is assumed to have no trailing slashes
         url = id_server_url + "/_matrix/identity/internal/bind"