Comment 0 for bug 952478

Revision history for this message
Tomasz Maciejewski (ponton) wrote :

I had problems for a while with the weather for some Polish cities (especially Wrocław). After looking into the source I discovered that the indicator didn't receive any data:

[Fetcher] 2012-03-04 12:32:07,141 - ERROR - Weather: could not get weather icon from report
[Fetcher] 2012-03-04 12:32:07,141 - ERROR - Weather: got data '{}'
[Fetcher] 2012-03-04 12:32:07,141 - ERROR - ExtendedForecast: unknown Google weather condition ''

I could fix that by changing the location_id sent to the Google to the very label displayed in the menu. The fix is one-line change:

443c443
< self.location_details[loc_ids[valid_source]],
---
> self.location_details['label'],

This worked like charm.