1. Nekmo NA
  2. NekBot
  3. Issues
Issue #19 resolved

El Addon Weather no funciona con ciudad que no tengan diferentes opciones de ciudades

Nekmo NA
repo owner created an issue
  File "/home/nekmo/nekbot/nekbot/addons/weather/accuweather.py", line 76, in get_city
    Local variables:
      query = "'Torrelodones'"
    query_id = self.get_cities(query)
  File "/home/nekmo/nekbot/nekbot/addons/weather/accuweather.py", line 46, in get_cities
    Local variables:
      cities = []
      data = "'<!DOCTYPE html>\r\n<html>\r\n<head> \r\n    <title>Torrelodones Weather - AccuWeather Forecast for Madrid Spain</title>   ...
      html = <Element html at 0x1643530>
      query = "'Torrelodones'"
      rematch = "'document\\.getElementById\\(\'s\'\\)\\.value == "([^"]+)"'"
      req = <MyHTTPResponse at 22626744 whose fp = <socket._fileobject object at 0x13a6f50>>
    city = re.findall(rematch, data, re.MULTILINE)[1]
<type 'exceptions.IndexError'>: list index out of range

Comments (1)

  1. Log in to comment