[tor-commits] [bridgedb/master] Give a warning if no emailDistributor was created.
isis at torproject.org
isis at torproject.org
Sun Jan 12 06:06:32 UTC 2014
commit 80c14e831fa2208a21a1f7a262eefebe938d93ab
Author: Isis Lovecruft <isis at torproject.org>
Date: Fri Nov 15 15:18:55 2013 +0000
Give a warning if no emailDistributor was created.
---
lib/bridgedb/Main.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/bridgedb/Main.py b/lib/bridgedb/Main.py
index f22e568..f62b54d 100644
--- a/lib/bridgedb/Main.py
+++ b/lib/bridgedb/Main.py
@@ -480,8 +480,10 @@ def startup(options, rundir, configFile):
emailDistributor.prepopulateRings() # create default rings
logging.info("Bridges allotted for email distribution: %d"
% len(emailDistributor.splitter))
+ else:
+ logging.warn("No email distributor created!")
- if ipDistributor:
+ if ipDistributor is not None:
logging.debug("Prepopulating HTTPS distributor hashrings...")
ipDistributor.prepopulateRings() # create default rings
logging.info("Bridges allotted for web distribution: %d"
More information about the tor-commits
mailing list