Permalink
Browse files

no raw error output...

  • Loading branch information...
1 parent 300ade3 commit 1f86565fddf7b7d6198a64905b6ab3bcabbe68c9 @ydoovv ydoovv committed Oct 18, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 main.py
View
@@ -41,7 +41,8 @@ def get(self):
res = urlfetch.fetch(url)
favs = json.loads(res.content)
if isinstance(favs, dict): # {"request": "oooo", "error": "xxxx"}
- self.response.out.write('%s}' % res.content.split(',')[0])
+ template_values["flashes"] = favs["error"]
+ self.render(template_values)
return
template_values = {"tweets": [], "id": id_, "page": int(page) + 1}
for fav in favs:

0 comments on commit 1f86565

Please sign in to comment.