From 5f8d51cbf0c2ec857b263a971e63bd8d3744201c Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 14 Jul 2016 00:31:44 +0100 Subject: fixed duplicate response --- modules/tfl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tfl.py b/modules/tfl.py index 967ef2b7..7572d1ba 100644 --- a/modules/tfl.py +++ b/modules/tfl.py @@ -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") -- cgit v1.3.1-10-gc9f91