[tor-commits] [oonib/master] Fix bug introduce in previous PR.

art at torproject.org art at torproject.org
Wed Apr 23 14:31:51 UTC 2014


commit bf6da812764aa3879fef67aedd6e072bad193e24
Author: Arturo Filastò <art at fuffa.org>
Date:   Mon Apr 21 19:23:59 2014 +0200

    Fix bug introduce in previous PR.
---
 oonib/bouncer/handlers.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oonib/bouncer/handlers.py b/oonib/bouncer/handlers.py
index 0980262..0a5b51f 100644
--- a/oonib/bouncer/handlers.py
+++ b/oonib/bouncer/handlers.py
@@ -97,7 +97,7 @@ class Bouncer(object):
                         break
                 # Or default to a random selection
                 else:
-                    c = random.choice(choices)
+                    c = random.choice(choices.keys())
 
                 response[helper_name] = {'collector': c, 'address': choices[c]}
 





More information about the tor-commits mailing list