Fix batch status caching for when a key doesn't exist in the cache.

This commit is contained in:
Andrew Resch 2007-12-28 13:19:50 +00:00
parent dd395b8c9c
commit 5c38bfdbe7
1 changed files with 2 additions and 0 deletions

View File

@ -305,6 +305,8 @@ class TorrentView(listview.ListView, component.Component):
new = status[torrent_id]
diff = {}
for key in new.keys():
if not key in old.keys():
continue
# There is a difference, so lets add it to our new dict
if new[key] != old[key]:
diff[key] = new[key]