aboutsummaryrefslogtreecommitdiff
path: root/modules/tfl.py
diff options
context:
space:
mode:
authorGravatar jesopo2016-07-14 00:31:44 +0100
committerGravatar jesopo2016-07-14 00:31:44 +0100
commit5f8d51cbf0c2ec857b263a971e63bd8d3744201c (patch)
treef54888764390c0368e491c591c2f4d9b65ad2c34 /modules/tfl.py
parentadded logs.py and changed EventHook objects to know their name. (diff)
fixed duplicate response
Diffstat (limited to 'modules/tfl.py')
-rw-r--r--modules/tfl.py3
1 files changed, 2 insertions, 1 deletions
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")