AttributeError in update_weather_data() when earthtools.org is unreachable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Weather Indicator |
Fix Released
|
Critical
|
Joshua Tasker |
Bug Description
The indicator-weather logo doesn"t appear in the taskbar but the process is still present.
Configuration is default one since I can't access any configuration menu. Using dconf-tool I changed Yahoo weather source to Weather.com (parameter 'W' instead of 'Y').
The log file report an error :
[Fetcher] 2013-07-05 22:21:39,877 - DEBUG - Traceback (most recent call last):
File "/usr/bin/
weather = self.get_weather()
File "/usr/bin/
self.
File "/usr/bin/
timezone(
File "/usr/lib/
if zone.upper() == 'UTC':
AttributeError: 'NoneType' object has no attribute 'upper'
Configuration :
ubunt:~$ sb_release -d
apt-cache policy indicator-weather
indicator-weather:
Installé : 13.05.29
Candidat : 13.05.29
Table de version :
*** 13.05.29 0
500 http://
100 /var/lib/
11.
500 http://
11.
500 http://
Installation process :
sudo add-apt-repository ppa:weather-
sudo add-apt-repository ppa:pywapi-
sudo apt-get update
sudo apt-get install indicator-weather
summary: |
- No logo appears, error in logfile, maybe crash + AttributeError in update_weather_data() when earthtools.org is + unreachable |
Changed in weather-indicator: | |
status: | Triaged → Fix Committed |
Changed in weather-indicator: | |
status: | Fix Committed → Fix Released |
I see the problem -- when earthtools.org is unreachable, the program isn't handling the situation properly. I don't have a fix for you yet but I should be able to get one out later this week.