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

[tor-commits] [bridgedb/master] Add `pragma: no cover` directive to b.e.server.addServer.



commit a78d22c3d65d6ceddbd902b04861b04641acd6fb
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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)
 



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