deskbar-applet r2212 - in trunk: . deskbar/handlers
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2212 - in trunk: . deskbar/handlers
- Date: Mon, 16 Jun 2008 11:50:29 +0000 (UTC)
Author: sebp
Date: Mon Jun 16 11:50:29 2008
New Revision: 2212
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2212&view=rev
Log:
Fixed bug #538425: local variable 'stream' referenced before assignment
Modified:
trunk/ChangeLog
trunk/deskbar/handlers/desklicious.py
Modified: trunk/deskbar/handlers/desklicious.py
==============================================================================
--- trunk/deskbar/handlers/desklicious.py (original)
+++ trunk/deskbar/handlers/desklicious.py Mon Jun 16 11:50:29 2008
@@ -138,6 +138,7 @@
url = DEFAULT_QUERY_TAG % (urllib.quote_plus(self._user), urllib.quote_plus(tag))
LOGGER.debug("Opening URL %s", url)
+ stream = None
try:
try:
stream = urllib.urlopen(url, proxies=deskbar.core.Utils.get_proxy())
@@ -147,7 +148,8 @@
except ExpatError, e:
LOGGER.exception(e)
finally:
- stream.close()
+ if stream != None:
+ stream.close()
#And return the results
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]