deskbar-applet r2109 - in trunk: . deskbar/handlers
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2109 - in trunk: . deskbar/handlers
- Date: Sun, 13 Apr 2008 13:02:44 +0100 (BST)
Author: sebp
Date: Sun Apr 13 13:02:44 2008
New Revision: 2109
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2109&view=rev
Log:
Fixed exception when search result has no summary
Modified:
trunk/ChangeLog
trunk/deskbar/handlers/yahoo.py
Modified: trunk/deskbar/handlers/yahoo.py
==============================================================================
--- trunk/deskbar/handlers/yahoo.py (original)
+++ trunk/deskbar/handlers/yahoo.py Sun Apr 13 13:02:44 2008
@@ -115,7 +115,9 @@
for result in handler.get_results():
result_title = strip_html(result["title"])
- result_summary = strip_html(result["summary"])
+ result_summary = result["summary"]
+ if result_summary != None:
+ result_summary = strip_html(result_summary)
matches.append(YahooMatch(name=result_title, url=result["clickurl"],
summary=result_summary,
priority=self.get_priority()))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]