[or-cvs] [bridgedb/master] Identify the ‘no bridges’ message using a positive index.

nickm at torproject.org nickm at torproject.org
Mon Feb 14 20:54:15 UTC 2011


commit 1dc4280b163975d54e6118662d613a1bd1d0cc8a
Author: Robert Ransom <rransom.8774 at gmail.com>
Date:   Sat Dec 11 19:42:09 2010 -0800

    Identify the ‘no bridges’ message using a positive index.
---
 lib/bridgedb/Server.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/bridgedb/Server.py b/lib/bridgedb/Server.py
index 1ce07cb..95b3b51 100644
--- a/lib/bridgedb/Server.py
+++ b/lib/bridgedb/Server.py
@@ -82,7 +82,7 @@ class WebResource(twisted.web.resource.Resource):
             answer = "".join("%s\n" % b.getConfigLine(self.includeFingerprints)
                              for b in bridges)
         else:
-            answer = t.gettext(I18n.BRIDGEDB_TEXT[-1])
+            answer = t.gettext(I18n.BRIDGEDB_TEXT[7])
 
         logging.info("Replying to web request from %s.  Parameters were %r", ip,
                      request.args)





More information about the tor-commits mailing list