Module: deluge
Branch: master
Commit: 29f61b58fb7c635103c2998fb78c99bd820c7067

Author: Andrew Resch <[email protected]>
Date:   Mon Aug 23 17:34:30 2010 -0700

Fix key error after enabling a plugin that introduces a new status key

---

 deluge/ui/sessionproxy.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/deluge/ui/sessionproxy.py b/deluge/ui/sessionproxy.py
index 3b3190b..50b8af4 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
 

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to