deskbar-applet r2117 - in branches/gnome-2-22: . deskbar/handlers
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2117 - in branches/gnome-2-22: . deskbar/handlers
- Date: Mon, 14 Apr 2008 19:52:58 +0100 (BST)
Author: sebp
Date: Mon Apr 14 19:52:58 2008
New Revision: 2117
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2117&view=rev
Log:
Fixed another unbound variable exception
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/deskbar/handlers/yahoo.py
Modified: branches/gnome-2-22/deskbar/handlers/yahoo.py
==============================================================================
--- branches/gnome-2-22/deskbar/handlers/yahoo.py (original)
+++ branches/gnome-2-22/deskbar/handlers/yahoo.py Mon Apr 14 19:52:58 2008
@@ -60,6 +60,7 @@
matches = []
stream = None
+ dom = None
try:
try:
stream = urllib.urlopen(url, proxies=get_proxy())
@@ -72,6 +73,9 @@
if stream != None:
stream.close()
+ if dom == None:
+ return
+
LOGGER.info('Got yahoo answer for: %s', qstring)
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]