Commit 7ed74c90 authored by Nick Mathewson's avatar Nick Mathewson
Browse files

r17258@catbus: nickm | 2007-12-19 17:15:35 -0500

 Fix an attempt to take the length of a generator.


svn:r12874
parent ac112c4c
......@@ -200,10 +200,10 @@ class EmailBasedDistributor(bridgedb.Bridges.BridgeHolder):
if self.store.has_key(emailaddress):
result = []
ids_str = self.store[emailaddress]
ids = bridgedb.Bridges.chopString(ids_str, bridgedb.Bridges.ID_LEN)
logging.info("We've seen %r before. Sending the same %d bridges"
" as last time", emailaddress, len(ids))
for ident in ids:
logging.info("We've seen %r before. Sending the same bridges"
" as last time", emailaddress)
for ident in bridgedb.Bridges.chopString(ids_str,
bridgedb.Bridges.ID_LEN):
b = self.ring.getBridgeByID(ident)
if b != None:
result.append(b)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment