Add proper no result message
This commit is contained in:
parent
57de4f9b44
commit
068011b7a2
1 changed files with 2 additions and 0 deletions
|
@ -139,5 +139,7 @@ class Module(object):
|
|||
print(stop)
|
||||
results = ["%s (%s): %s" % (stop["name"], ", ".join(stop["modes"]), stop["id"]) for stop in stop_search["matches"]]
|
||||
event["stdout"].write("; ".join(results))
|
||||
if not results:
|
||||
event["stderr"].write("No results")
|
||||
else:
|
||||
event["stderr"].write("No results")
|
||||
|
|
Loading…
Reference in a new issue