-->
--> -->
|
| <type 'exceptions.IndexError'> | Python 2.6.2: /usr/local/bin/python Wed Mar 10 00:31:36 2010 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /usr/www/users/kwjones/rayd8r/cgi-bin/pythonweather01.cgi in |
| 129 xml = getWebXML(url) |
| 130 |
| 131 elDict = getElements(xml) |
| 132 #formatDataVerbose(elDict) |
| 133 formatDataSuccinct(elDict) |
| elDict undefined, getElements = <function getElements at 0x28738684>, xml = <xml.dom.minidom.Document instance at 0x287a6a0c> |
| /usr/www/users/kwjones/rayd8r/cgi-bin/pythonweather01.cgi in getElements(xml=<xml.dom.minidom.Document instance at 0x287a6a0c>) |
| 52 relative_humidity = (root[0].getElementsByTagName('relative_humidity')[0]).childNodes[0].data.encode('iso-8859-1') |
| 53 wind_string = (root[0].getElementsByTagName('wind_string')[0]).childNodes[0].data.encode('iso-8859-1') |
| 54 heat_index_string = (root[0].getElementsByTagName('heat_index_string')[0]).childNodes[0].data.encode('iso-8859-1') |
| 55 observation_time = (root[0].getElementsByTagName('observation_time')[0]).childNodes[0].data.encode('iso-8859-1') |
| 56 credit = (root[0].getElementsByTagName('credit')[0]).childNodes[0].data.encode('iso-8859-1') |
| heat_index_string undefined, root = [<DOM Element: current_observation at 0x287acaac>], ].getElementsByTagName undefined |
<type 'exceptions.IndexError'>: list index out of range
args =
('list index out of range',)
message =
'list index out of range'
News+
BBC
USAToday
StarTribune
NY Times
Yahoo
Slashdot
Engadget
Blogs+
Blogging
Mobility
NewsGator
Bloglines
Weather
Minneapolis
Dallas
NYC
Los
Angeles
All Wunderground
Weather Channel
Radio
Streams
MPR
News
MPR
Current
Maps
Mapquest
Google Maps
Travel
NWA
Orbitz
Palm Travel
Mapquest
Diagnostic
ENV
Speed Test