diff options
author | Daniel Ehlers <danielehlers@mindeye.net> | 2016-08-14 13:32:24 +0200 |
---|---|---|
committer | Daniel Ehlers <danielehlers@mindeye.net> | 2016-08-14 16:49:05 +0200 |
commit | dfaf0fee317d54131f96e6f7b43ecbcab8b0a687 (patch) | |
tree | a3f8e67d29739338e1d83acfec9ee759384bb522 /synapse/handlers | |
parent | Fix AttributeError when bind_dn is not defined. (diff) | |
download | synapse-dfaf0fee317d54131f96e6f7b43ecbcab8b0a687.tar.xz |
Log the value which is observed in the first place.
The name 'result' is of bool type and has no len property, resulting in a TypeError. Futhermore in the flow control conn.response is observed and hence should be reported. Signed-off-by: Daniel Ehlers <sargon@toppoint.de>
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index c9307bd440..a582d6334b 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -660,7 +660,7 @@ class AuthHandler(BaseHandler): else: logger.warn( "ldap registration failed: unexpected (%d!=1) amount of results", - len(result) + len(conn.response) ) defer.returnValue(False) |