fixed duplicate response

This commit is contained in:
jesopo 2016-07-14 00:31:44 +01:00
parent 369b784a0d
commit 5f8d51cbf0
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3

View file

@ -139,4 +139,5 @@ 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))
event["stderr"].write("Stop not found")
else:
event["stderr"].write("Stop not found")