[tor-commits] [bridgedb/master] Add `pragma: no cover` directive to	b.e.server.addServer.
    isis at torproject.org 
    isis at torproject.org
       
    Fri Jun  6 23:39:15 UTC 2014
    
    
  
commit a78d22c3d65d6ceddbd902b04861b04641acd6fb
Author: Isis Lovecruft <isis at torproject.org>
Date:   Thu Jun 5 03:11:44 2014 +0000
    Add `pragma: no cover` directive to b.e.server.addServer.
    
    We don't need to test for conditions which might raise a
    ``twisted.protocols.tcp.CannotListenError``, we just need to ensure that
    we exit if we can't bind to the port for the email server.
---
 lib/bridgedb/email/server.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bridgedb/email/server.py b/lib/bridgedb/email/server.py
index 36dc841..94405ea 100644
--- a/lib/bridgedb/email/server.py
+++ b/lib/bridgedb/email/server.py
@@ -421,7 +421,7 @@ def addServer(config, distributor, schedule):
 
     try:
         reactor.listenTCP(port, factory, interface=addr)
-    except CannotListenError as error:
+    except CannotListenError as error:  # pragma: no cover
         logging.fatal(error)
         raise SystemExit(error.message)
 
    
    
More information about the tor-commits
mailing list