Skip to content
Snippets Groups Projects
Commit ece7e000 authored by David Baker's avatar David Baker
Browse files

Comment when our 3pids would be incomplete

parent 9d0d40fc
No related branches found
No related tags found
No related merge requests found
...@@ -372,6 +372,7 @@ class RegisterRestServlet(RestServlet): ...@@ -372,6 +372,7 @@ class RegisterRestServlet(RestServlet):
""" """
reqd = ('medium', 'address', 'validated_at') reqd = ('medium', 'address', 'validated_at')
if any(x not in threepid for x in reqd): 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") logger.info("Can't add incomplete 3pid")
return return
...@@ -437,6 +438,7 @@ class RegisterRestServlet(RestServlet): ...@@ -437,6 +438,7 @@ class RegisterRestServlet(RestServlet):
""" """
reqd = ('medium', 'address', 'validated_at') reqd = ('medium', 'address', 'validated_at')
if any(x not in threepid for x in reqd): 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") logger.info("Can't add incomplete 3pid")
defer.returnValue() defer.returnValue()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment