aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-10-22 15:54:45 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-10-22 15:56:42 +1300
commit6170493615d0fda65af1479543e13d4a2a531dae (patch)
tree51bf928e72653768a162936e7ef81af1f131b970
parentceb12e86280f754f9147b208818cce9831bf7f86 (diff)
downloadmitmproxy-6170493615d0fda65af1479543e13d4a2a531dae.tar.gz
mitmproxy-6170493615d0fda65af1479543e13d4a2a531dae.tar.bz2
mitmproxy-6170493615d0fda65af1479543e13d4a2a531dae.zip
Don't call error for flow kill
This is now the error handler on master, so whatever the intetion was it's now definitely wrong.
-rw-r--r--mitmproxy/flow.py1
-rw-r--r--mitmproxy/tools/console/flowview.py2
-rw-r--r--test/mitmproxy/test_flow.py1
3 files changed, 1 insertions, 3 deletions
diff --git a/mitmproxy/flow.py b/mitmproxy/flow.py
index 2fb7ace0..a23abf5f 100644
--- a/mitmproxy/flow.py
+++ b/mitmproxy/flow.py
@@ -165,7 +165,6 @@ class Flow(stateobject.StateObject):
self.reply.take()
self.reply.kill(force=True)
self.reply.commit()
- master.error(self)
def intercept(self, master):
"""
diff --git a/mitmproxy/tools/console/flowview.py b/mitmproxy/tools/console/flowview.py
index 4e886ee4..5ac61bb7 100644
--- a/mitmproxy/tools/console/flowview.py
+++ b/mitmproxy/tools/console/flowview.py
@@ -480,7 +480,7 @@ class FlowView(tabs.Tabs):
else:
new_flow, new_idx = self.state.get_prev(idx)
if new_flow is None:
- signals.status_message.send(message="No more flows!")
+ signals.status_message.send(message="No more flows")
else:
signals.pop_view_state.send(self)
self.master.view_flow(new_flow, self.tab_offset)
diff --git a/test/mitmproxy/test_flow.py b/test/mitmproxy/test_flow.py
index 5b9f3835..6ba23579 100644
--- a/test/mitmproxy/test_flow.py
+++ b/test/mitmproxy/test_flow.py
@@ -104,7 +104,6 @@ class TestHTTPFlow:
assert f.killable
f.kill(fm)
assert not f.killable
- assert fm.error.called
assert f.reply.value == Kill
def test_killall(self):