Comment 5 for bug 964365

Revision history for this message
Sage Russell (sage-sageth) wrote : Re: Weather applet crashes randomly

Here's the stack. I'll make the change and see how it goes.

[Fetcher] 2012-05-15 09:20:04,698 - DEBUG - Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1397, in get_new_weather_data
    log.debug("Indicator: fill in menu with params: city='%s', temp='%s', humid='%s', wind='%s', sunrise='%s', sunset='%s', puretemp=%s" % (self.places[self.placechosen][1], weather.get_temperature_label(), weather.get_humidity_label(), weather.get_wind_label(), weather.get_sunrise_label(), weather.get_sunset_label(), weather.get_temperature()))
  File "/usr/bin/indicator-weather", line 898, in get_sunrise_label
    return "%s: %s" % (_("Sunrise"), TimeFormatter.format_time(self.__sunrise_t))
  File "/usr/lib/python2.7/dist-packages/indicator_weather/helpers.py", line 248, in format_time
    return t.strftime(TimeFormatter.format)
AttributeError: 'NoneType' object has no attribute 'strftime'