Unverified Commit a78d22c3 authored by Isis Lovecruft's avatar Isis Lovecruft
Browse files

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.
parent d5ca5f67
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment