The branch, eden has been updated
via 8d1197288e329d5ea184e87ed634b9a8c22e9cda (commit)
from 9266f0cbf523d352ca5231fb5be01ad534d2b464 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=8d1197288e329d5ea184e87ed634b9a8c22e9cda
commit 8d1197288e329d5ea184e87ed634b9a8c22e9cda
Author: ronie <[email protected]>
Date: Tue Mar 13 00:56:41 2012 +0100
[weather.wunderground] -v0.0.8
fix error if no internet connection is available when searching for a
location
diff --git a/weather.wunderground/addon.xml b/weather.wunderground/addon.xml
index 157565a..dbeabe4 100644
--- a/weather.wunderground/addon.xml
+++ b/weather.wunderground/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="weather.wunderground" name="Weather Underground" version="0.0.7"
provider-name="Team XBMC">
+<addon id="weather.wunderground" name="Weather Underground" version="0.0.8"
provider-name="Team XBMC">
<requires>
<import addon="xbmc.python" version="2.0"/>
<import addon="script.module.simplejson" version="2.0.10"/>
diff --git a/weather.wunderground/changelog.txt
b/weather.wunderground/changelog.txt
index 8640648..7f9cc5c 100644
--- a/weather.wunderground/changelog.txt
+++ b/weather.wunderground/changelog.txt
@@ -1,3 +1,6 @@
+v0.0.8
+- fix error if no internet connection is available when searching for a
location
+
v0.0.7
- fix: import error on Windows with non/extended-ascii profile paths
diff --git a/weather.wunderground/default.py b/weather.wunderground/default.py
index 009f0f5..7e872b2 100644
--- a/weather.wunderground/default.py
+++ b/weather.wunderground/default.py
@@ -78,11 +78,12 @@ def location(string):
loc = []
locid = []
query = fetch(LOCATION_URL % (urllib2.quote(string)))
- for item in query['RESULTS']:
- location = item['name']
- locationid = item['l']
- loc.append(location)
- locid.append(locationid)
+ if query != '':
+ for item in query['RESULTS']:
+ location = item['name']
+ locationid = item['l']
+ loc.append(location)
+ locid.append(locationid)
return loc, locid
def geoip():
-----------------------------------------------------------------------
Summary of changes:
weather.wunderground/addon.xml | 2 +-
weather.wunderground/changelog.txt | 3 +++
weather.wunderground/default.py | 11 ++++++-----
3 files changed, 10 insertions(+), 6 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons