Location instance has no attribute 'location_code'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
indicator-weather (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When adding East Melbourne as a location, "Apply" buttons seemingly does nothing; there is an AttributeError in the console output.
How to reproduce:
1. Go to Preferences, Locations, select Add.
2. Search for "East Melbourne".
3. Select "East Melbourne, Victoria, Australia", select Next.
4. Enter any name for it, select Next.
5. Select Apply.
Expected results:
East Melbourne is added as a location.
Actual results:
Nothing happens when Apply button is pressed. In the console, the following output is produced:
Traceback (most recent call last):
File "/usr/bin/
(location_code, location_details) = self.location.
File "/usr/bin/
return (self.location_
AttributeError: Location instance has no attribute 'location_code'
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: indicator-weather 11.05.31-0ubuntu2.1
ProcVersionSign
Uname: Linux 3.0.0-15-
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Mon Jan 9 13:28:51 2012
InstallationMedia: Ubuntu 10.04.2 LTS "Lucid Lynx" - Release i386 (20110211.1)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.UTF-8
SHELL=/bin/bash
SourcePackage: indicator-weather
UpgradeStatus: Upgraded to oneiric on 2011-10-16 (84 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.