Merge branch 'master' of github.com:jesopo/bitbot

This commit is contained in:
jesopo 2016-07-14 00:42:49 +01:00
commit 7425afa90f

View file

@ -139,5 +139,7 @@ class Module(object):
print(stop) print(stop)
results = ["%s (%s): %s" % (stop["name"], ", ".join(stop["modes"]), stop["id"]) for stop in stop_search["matches"]] results = ["%s (%s): %s" % (stop["name"], ", ".join(stop["modes"]), stop["id"]) for stop in stop_search["matches"]]
event["stdout"].write("; ".join(results)) event["stdout"].write("; ".join(results))
if not results:
event["stderr"].write("No results")
else: else:
event["stderr"].write("Stop not found") event["stderr"].write("No results")