Merge branch 'master' of github.com:jesopo/bitbot
This commit is contained in:
commit
7425afa90f
1 changed files with 3 additions and 1 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("Stop not found")
|
||||
event["stderr"].write("No results")
|
||||
|
|
Loading…
Reference in a new issue