Comment 3 for bug 1289824

Revision history for this message
Mikhail Veygman (mveygman) wrote :

There seems to be a field missing but still being used which is a result of reuse of old code or unintended consequence of a rewrite:

When trying to apply the location to the indicator-weather on Precise the following error occurs:

Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1883, in on_apply
    (location_code, location_details) = self.location.export_location_details()
  File "/usr/bin/indicator-weather", line 405, in export_location_details
    return (self.location_code, self.location_details)
AttributeError: Location instance has no attribute 'location_code'

There is no attribute location_code within the class Location