From de65aebfdf011f1cf68c554ed79326621c328c10 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sat, 24 Sep 2016 18:28:30 -0700 Subject: [PATCH] fix tests --- mitmproxy/dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py index 9c40ff2dd..3d725ca1c 100644 --- a/mitmproxy/dump.py +++ b/mitmproxy/dump.py @@ -48,7 +48,7 @@ class DumpMaster(flow.FlowMaster): self.options = self.options # type: Options self.set_stream_large_bodies(options.stream_large_bodies) - if not self.options.no_server: + if not self.options.no_server and server: print("Proxy server listening at http://{}".format(server.address)) if self.server and self.options.http2 and not tcp.HAS_ALPN: # pragma: no cover