[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit bf6da812764aa3879fef67aedd6e072bad193e24
Author: Arturo Filastò <art@xxxxxxxxx>
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]}
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits