Author: duncan
Date: Sat Oct 13 16:58:10 2007
New Revision: 9967

Log:
[ 1805989 ] Weather download bug
Fix applied


Modified:
   branches/rel-1/freevo/src/plugins/weather.py

Modified: branches/rel-1/freevo/src/plugins/weather.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/weather.py        (original)
+++ branches/rel-1/freevo/src/plugins/weather.py        Sat Oct 13 16:58:10 2007
@@ -611,7 +611,10 @@
         ltime = time.localtime()
         ctr   = 0
         for i in range(5,10):
-            (mons, days, years) = holdings[i].split("/")
+            try:
+                (mons, days, years) = holdings[i].split("/")
+            except IndexError, e:
+                mons = days = years = '0'
             mons  = int(mons)
             days  = int(days)
             years = int(years)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to