Fix batch status caching for when a key doesn't exist in the cache.
This commit is contained in:
parent
dd395b8c9c
commit
5c38bfdbe7
|
@ -305,6 +305,8 @@ class TorrentView(listview.ListView, component.Component):
|
||||||
new = status[torrent_id]
|
new = status[torrent_id]
|
||||||
diff = {}
|
diff = {}
|
||||||
for key in new.keys():
|
for key in new.keys():
|
||||||
|
if not key in old.keys():
|
||||||
|
continue
|
||||||
# There is a difference, so lets add it to our new dict
|
# There is a difference, so lets add it to our new dict
|
||||||
if new[key] != old[key]:
|
if new[key] != old[key]:
|
||||||
diff[key] = new[key]
|
diff[key] = new[key]
|
||||||
|
|
Loading…
Reference in New Issue