[or-cvs] [bridgedb/master] Handle seeing email addresses for the first time

Nick Mathewson nickm at seul.org
Mon Oct 12 22:40:38 UTC 2009


Author: Nick Mathewson <nickm at torproject.org>
Date: Mon, 12 Oct 2009 17:56:28 -0400
Subject: Handle seeing email addresses for the first time
Commit: 0afa0a9190eee229642f4c8f0cf11b0ba5e5b7a0

---
 lib/bridgedb/Dist.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/bridgedb/Dist.py b/lib/bridgedb/Dist.py
index c981f79..81f6f21 100644
--- a/lib/bridgedb/Dist.py
+++ b/lib/bridgedb/Dist.py
@@ -251,7 +251,7 @@ class EmailBasedDistributor(bridgedb.Bridges.BridgeHolder):
         db = bridgedb.Storage.getDB()
 
         lastSaw = db.getEmailTime(emailaddress)
-        if lastSaw + MAX_EMAIL_RATE >= now:
+        if lastSaw is not None and lastSaw + MAX_EMAIL_RATE >= now:
             logging.warn("Got a request for bridges from %r; we already "
                          "answered one within the last %d seconds. Ignoring.",
                          emailaddress, MAX_EMAIL_RATE)
-- 
1.5.6.5




More information about the tor-commits mailing list