ClearWeather Screenlet showing empty Window

Bug #1273423 reported by Gerald Teschl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
screenlets (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 13.10
screenlets-pack-all: 0.1.6-0ubuntu1

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/screenlets/__init__.py", line 2079, in expose
    self.on_draw(ctx)
  File "/usr/share/screenlets/screenlets-pack-all/ClearWeather/ClearWeatherScreenlet.py", line 400, in on_draw
    icon = str(self.get_icon(int(weather[0]["icon"])))
ValueError: invalid literal for int() with base 10: ''

Changing Line 399 from

if weather[0]["icon"]=="-": weather[0]["icon"]="48"

to

if weather[0]["icon"]=="-" or weather[0]["icon"]=="": weather[0]["icon"]="48"

fixes this issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.