Comment 1 for bug 528131

Revision history for this message
Andrew Duggan (lists-clanduggan) wrote :

Same problem with bzr from March 9 2010. Rev 1218. If I hibernate my laptop for more than 30 minutes when it resume the weather applet fails to get its updates. Not sure if it is a "urllib2" problem or weather.py. Also if I have the network disabled in network manager (as a test) when I start AWN or load the applet, same thing, except of course the icon stays as the weather channel logo. I slightly patched weather.py to force it to traceback when any network error happens and this is the traceback.

NetworkException in Weather: error in get_forecast: <urlopen error [Errno -3] Temporary failure in name resolution>

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/awn/extras/threadqueue.py", line 64, in run
    r = func(*args, **kwargs)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line 159, in bound_func
    result = func(obj, *args, **kwargs)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line 188, in bound_func
    raise NetworkException("error in %s: %s" % (func.__name__, e))
NetworkException: error in get_forecast: <urlopen error [Errno -3] Temporary failure in name resolution>

The cause is due to the fact that the applet tries to get the update before NetworkManager has completely restored the network connectivity on thaw/resume.

OT of the bug, I have to say what an excellent job on AWN you guys are doing. the 0.4.0 / trunk is a major improvement over something that was already really good.