diff --git a/modules/tfl.py b/modules/tfl.py index 7572d1ba..f10ed899 100644 --- a/modules/tfl.py +++ b/modules/tfl.py @@ -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")