I can confirm, thay ucomesdag proposal fixed crash when adding new location 
(city) in Weather indicator versions 11.11.28 and 12.07.30 :)
I'm attaching a patch, which can be applied against Ubuntu 12.04 and newer 
indicator-weather packages.

Uco (ucomesdag) wrote 16 hours ago:     #4
> /usr/bin/indicator-weather line 367: if 
> (yahoo_woeid_result['ResultSet']['Error'] != 0) and 
> (yahoo_woeid_result['ResultSet']['Results'] != None):
> ...replace ['Error'] != 0 with ['Error'] != '0' 

** Patch added: "Patch for fixing crash when adding new location in Weather 
indicator"
   
https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/821233/+attachment/3455982/+files/indicator-weather-crash-AttributeError-in-export_location_details.patch

** Also affects: indicator-weather (Baltix)
   Importance: Undecided
       Status: New

** Changed in: indicator-weather (Baltix)
       Status: New => In Progress

** Changed in: indicator-weather (Baltix)
   Importance: Undecided => Medium

** Changed in: indicator-weather (Baltix)
     Assignee: (unassigned) => Mantas Kriaučiūnas (mantas)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/821233

Title:
  indicator-weather crashed with AttributeError in
  export_location_details(): Location instance has no attribute
  'location_code'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/821233/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to