summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/register.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-03-08 11:48:43 +0000
committerDavid Baker <dave@matrix.org>2017-03-08 11:48:43 +0000
commit65d43f3ca5965acc45b605e7867d877c0166ee96 (patch)
tree5d39e25fe750ed5e96a7159ac5c2e342931c24f7 /synapse/rest/client/v2_alpha/register.py
parentFix log line (diff)
downloadsynapse-65d43f3ca5965acc45b605e7867d877c0166ee96.tar.xz
Minor fixes from PR feedback
Diffstat (limited to 'synapse/rest/client/v2_alpha/register.py')
-rw-r--r--synapse/rest/client/v2_alpha/register.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 4e872e1a8e..98b277e072 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -371,7 +371,7 @@ class RegisterRestServlet(RestServlet):
         reqd = ('medium', 'address', 'validated_at')
         if any(x not in threepid for x in reqd):
             logger.info("Can't add incomplete 3pid")
-            defer.returnValue()
+            return
 
         yield self.auth_handler.add_threepid(
             user_id,
@@ -447,9 +447,7 @@ class RegisterRestServlet(RestServlet):
 
         if bind_msisdn:
             logger.info("bind_msisdn specified: binding")
-            logger.debug("Binding msisdn %s to %s" % (
-                threepid, user_id
-            ))
+            logger.debug("Binding msisdn %s to %s", threepid, user_id)
             yield self.identity_handler.bind_threepid(
                 threepid['threepid_creds'], user_id
             )