The JSON response from yahoo is incorrectly decoded in get_woeid_from_yahoo():
Traceback (most recent call last):
File "/usr/bin/indicator-weather", line 2690, in next_page
(result, error_type) = self.location.prepare_location(self.place_selected)
File "/usr/bin/indicator-weather", line 360, in prepare_location
self.prepare_location_for_yahoo(geonames_details)
File "/usr/bin/indicator-weather", line 430, in prepare_location_for_yahoo
woeid_result = pywapi.get_woeid_from_yahoo(displayed_city_name)
File "/usr/lib/python2.7/dist-packages/pywapi.py", line 906, in get_woeid_from_yahoo
json_response = handler.read().decode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 121:
ordinal not in range(128)
To fix, just change the referenced line to:
json_response = handler.read()
(i.e. don't call .decode() on the response)
Original issue reported on code.google.com by jtas...@gmail.com on 16 Jul 2013 at 4:46
Original issue reported on code.google.com by
jtas...@gmail.com
on 16 Jul 2013 at 4:46