From 5d94ed4387ac8a68c6a7a6f46338e69d8b1c4859 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 6 Aug 2013 11:13:50 +1200 Subject: [PATCH] Changed yahooanswers.py to use try_isgd --- plugins/yahooanswers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/yahooanswers.py b/plugins/yahooanswers.py index 9e07ac8..529d799 100644 --- a/plugins/yahooanswers.py +++ b/plugins/yahooanswers.py @@ -8,7 +8,7 @@ def answer(inp): query = "SELECT Subject, ChosenAnswer, Link FROM answers.search WHERE query=@query LIMIT 1" result = web.query(query, {"query": inp.strip()}).one() - short_url = web.isgd(result["Link"]) + short_url = web.try_isgd(result["Link"]) # we split the answer and .join() it to remove newlines/extra spaces answer = text.truncate_str(' '.join(result["ChosenAnswer"].split()), 80)