occasional HTTP 503 errors causes applet to stop updating
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
my-weather-indicator |
Fix Released
|
Critical
|
Lorenzo Carbonell |
Bug Description
Occasionally the app stops updating, and the problem appears that the call to urlopen() is not tolerant of receiving an HTTP error:
Traceback (most recent call last):
File "/opt/extras.
self.set_menu()
File "/opt/extras.
weather = self.weatherser
File "/opt/extras.
weather_data = self._get_weather()
File "/opt/extras.
json_string = read_from_
File "/opt/extras.
f = urllib2.
File "/usr/lib/
return _opener.open(url, data, timeout)
File "/usr/lib/
response = meth(req, response)
File "/usr/lib/
'http', request, response, code, msg, hdrs)
File "/usr/lib/
return self._call_
File "/usr/lib/
result = func(*args)
File "/usr/lib/
raise HTTPError(
urllib2.HTTPError: HTTP Error 503: Service Unavailable
Changed in my-weather-indicator: | |
assignee: | nobody → Lorenzo Carbonell (lorenzo-carbonell) |
importance: | Undecided → Critical |
status: | New → Fix Released |