indicator-weather can't add non-ascii locations

Bug #804174 reported by Lennart Regebro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
indicator-weather (Ubuntu)
New
Undecided
Unassigned

Bug Description

If you try to add the Trosa, Södermanland, Sweden location, the final "Apply" button doesn't make anything happen.

There is a traceback on stdout:

Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1647, in on_apply
    wi.settings.save_location_details(eval(str(location_details)), str(location_code))
  File "/usr/bin/indicator-weather", line 193, in save_location_details
    "yahoo id" : location_details['yahoo id'],
KeyError: 'yahoo id'

(This is independent of using Google of Yahoo! as a data source, so I'm guessing it fails while looking is up in "our database", whatever that means.).

Some testing indicated that the problem is that the location has a non-ascii character in it. It probably fails to look it up because of using the wrong encoding or something.

Revision history for this message
Lennart Regebro (regebro-gmail) wrote :

Indeed, it is, as there is also a non-ascii character in the full name "Senica, Trnavský, Slovakia".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.