commands: don't try to view flow returns as data

Fixes #2704
This commit is contained in:
Aldo Cortesi 2017-12-20 10:35:53 +13:00
parent c19b229608
commit 6efff27be4

View File

@ -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(