Add proper no result message

This commit is contained in:
Evelyn 2016-07-14 00:40:51 +01:00
parent 57de4f9b44
commit 068011b7a2

View file

@ -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")