From 12d9a7a5bdab8d9f421f0936add4fa5ed8327b69 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 23 Aug 2010 17:34:30 -0700 Subject: [PATCH] Fix key error after enabling a plugin that introduces a new status key --- deluge/ui/sessionproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/sessionproxy.py b/deluge/ui/sessionproxy.py index 3b3190b7b..50b8af4ee 100644 --- a/deluge/ui/sessionproxy.py +++ b/deluge/ui/sessionproxy.py @@ -200,7 +200,7 @@ class SessionProxy(component.Component): else: # We need to check if a key is expired for key in keys: - if t - self.cache_times[torrent_id][key] > self.cache_time: + if t - self.cache_times[torrent_id].get(key, 0.0) > self.cache_time: to_fetch.append(torrent_id) break