From 5c38bfdbe7e02b9c557e18e94992e29323e86441 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 28 Dec 2007 13:19:50 +0000 Subject: [PATCH] Fix batch status caching for when a key doesn't exist in the cache. --- deluge/ui/gtkui/torrentview.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index 3743afbe2..42aec4490 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -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]