summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-03-08 19:07:18 +0000
committerDavid Baker <dave@matrix.org>2017-03-08 19:07:18 +0000
commitece7e00048e6990434eda33b06b598f88237e0c4 (patch)
treeb8bf6de53a5f4769b92fe723554bf04190174249 /synapse
parentDocs (diff)
downloadsynapse-ece7e00048e6990434eda33b06b598f88237e0c4.tar.xz
Comment when our 3pids would be incomplete
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/v2_alpha/register.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 2c184b7314..7448c1346a 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -372,6 +372,7 @@ class RegisterRestServlet(RestServlet):
         """
         reqd = ('medium', 'address', 'validated_at')
         if any(x not in threepid for x in reqd):
+            # This will only happen if the ID server returns a malformed response
             logger.info("Can't add incomplete 3pid")
             return
 
@@ -437,6 +438,7 @@ class RegisterRestServlet(RestServlet):
         """
         reqd = ('medium', 'address', 'validated_at')
         if any(x not in threepid for x in reqd):
+            # This will only happen if the ID server returns a malformed response
             logger.info("Can't add incomplete 3pid")
             defer.returnValue()