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

[tor-commits] [oonib/master] Should be break; not continue



commit 9d61639c0f2783c37bb1037d55d7670bc43e7d01
Author: aagbsn <aagbsn@xxxxxxxx>
Date:   Mon Sep 9 14:58:55 2013 +0200

    Should be break; not continue
---
 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 710eb6c..5033fad 100644
--- a/oonib/bouncer/handlers.py
+++ b/oonib/bouncer/handlers.py
@@ -96,7 +96,7 @@ class Bouncer(object):
                 for item in response.values():
                     if item['collector'] in choices.keys():
                         choice = item
-                        continue
+                        break
                 # Or default to a random selection
                 else:
                     c,h = random.choice(choices.items())



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