Comment 3 for bug 468717

Revision history for this message
deadalnix (deadalnix) wrote : Re: weather applet does not automatically refreshs

I got A patch :

In weather.py file, find
     def activate_refresh_cb(self, widget=None, map=True):

(line 275 but I have modified the file so I'm not sure).

Remplace the line :

self.refresh_conditions()

by this code :

        if self.refresh_conditions() == None:
            print "Weather Applet : Failed to retrieve data, refresh in 10s . . ."
            self.applet.timing.delay(self.activate_refresh_cb, 10.0)
            return False

So, if the applet cannot retrieve data, it try again in 10s .