Hmm, it may not be exactly that line number, so here is the corrected block of code:
# If places have changed - update weather data
if wi.places_changed: log.debug("Preferences: Places changed to '%s'" % wi.places) wi.settings.set_value("places", wi.places) wi.placechosen = 0
if (type(wi.place) != None):
for i in xrange(len(wi.places)): if wi.places[i] is not None and wi.places[i][0] == wi.place[0]: wi.placechosen = i wi.place = wi.places[0] log.debug("Preferences: Place Chosen changed to '%s'" % wi.placechosen) wi.settings.set_value("placechosen", wi.placechosen) wi.location_details = wi.settings.get_location_details(wi.place[0]) need_to_update_weather = True wi.places_changed = False
Hmm, it may not be exactly that line number, so here is the corrected block of code:
# If places have changed - update weather data
log. debug(" Preferences: Places changed to '%s'" % wi.places)
wi. settings. set_value( "places" , wi.places)
wi. placechosen = 0 len(wi. places) ):
if wi.places[i] is not None and wi.places[i][0] == wi.place[0]:
wi.placechos en = i
wi. place = wi.places[0]
log. debug(" Preferences: Place Chosen changed to '%s'" % wi.placechosen)
wi. settings. set_value( "placechosen" , wi.placechosen)
wi. location_ details = wi.settings. get_location_ details( wi.place[ 0])
need_ to_update_ weather = True
wi. places_ changed = False
if wi.places_changed:
if (type(wi.place) != None):
for i in xrange(