kheuton / python-weather-api

Automatically exported from code.google.com/p/python-weather-api
MIT License
0 stars 0 forks source link

pywapi.get_weather_from_weather_com('10001') crashes #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Version 0.3.5. Python 3 on Arch Linux.

Tests:
weather_com_result = pywapi.get_weather_from_weather_com('10001')
yahoo_result = pywapi.get_weather_from_yahoo('10001')
noaa_result = pywapi.get_weather_from_noaa('KJFK')

Only the first test fails:
  File "/usr/lib/python3.3/site-packages/pywapi.py", line 203, in get_weather_from_weather_com
    if weather_dom.getElementsByTagName('dayf') > 0:
TypeError: unorderable types: NodeList() > int()

Test does not fail with version 0.3.4.

Original issue reported on code.google.com by willem...@gmail.com on 13 Aug 2013 at 6:19

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r152.

Original comment by jtas...@gmail.com on 4 Sep 2013 at 12:33