diff options
author | Aldo Cortesi <aldo@corte.si> | 2017-12-20 10:35:53 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2017-12-20 10:35:53 +1300 |
commit | 6efff27be440a55ecbbebe84e313b48f464c6354 (patch) | |
tree | 862e36e79adc58297e35b5aae5c2a5c332d13237 | |
parent | c19b229608c208f4bf7121c588b1d403220d5361 (diff) | |
download | mitmproxy-6efff27be440a55ecbbebe84e313b48f464c6354.tar.gz mitmproxy-6efff27be440a55ecbbebe84e313b48f464c6354.tar.bz2 mitmproxy-6efff27be440a55ecbbebe84e313b48f464c6354.zip |
commands: don't try to view flow returns as data
Fixes #2704
-rw-r--r-- | mitmproxy/tools/console/commandexecutor.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mitmproxy/tools/console/commandexecutor.py b/mitmproxy/tools/console/commandexecutor.py index 829daee1..26f92238 100644 --- a/mitmproxy/tools/console/commandexecutor.py +++ b/mitmproxy/tools/console/commandexecutor.py @@ -23,6 +23,10 @@ class CommandExecutor: signals.status_message.send( message="Command returned %s flows" % len(ret) ) + elif type(ret) == flow.Flow: + signals.status_message.send( + message="Command returned 1 flow" + ) else: self.master.overlay( overlay.DataViewerOverlay( |