From 45d13dfee38cd6a3f283ffb8843585eb3accf6ad Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Sat, 10 Mar 2012 16:12:02 +0530 Subject: [PATCH] Fix stupid bug caused by me misusing msg.respond. --- smsBEST/mumbai/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smsBEST/mumbai/app.py b/smsBEST/mumbai/app.py index b8c0bbd..8c693b9 100644 --- a/smsBEST/mumbai/app.py +++ b/smsBEST/mumbai/app.py @@ -23,7 +23,7 @@ class App(AppBase): if DIGIT.search(msg.text): routes = ChaloBest.routes(q=msg.text.replace(" ", "")) if not routes: - msg.respond("Sorry, we found no route marked '%s'." % msg.text) + msg.respond("Sorry, we found no route marked '%(text)s'.", text=msg.text) return detail = ChaloBest.route[routes[0]] stops = detail['stops']['features'] @@ -35,7 +35,7 @@ class App(AppBase): else: features = ChaloBest.stops(q=msg.text)['features'] if not features: - msg.respond("Sorry, we found no stops like '%s'." % msg.text) + msg.respond("Sorry, we found no stops marked '%(text)s'.", text=msg.text) return stops = [] for feat in features: