mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
Fix key error after enabling a plugin that introduces a new status key
This commit is contained in:
parent
dee33745c8
commit
29f61b58fb
@ -200,7 +200,7 @@ class SessionProxy(component.Component):
|
|||||||
else:
|
else:
|
||||||
# We need to check if a key is expired
|
# We need to check if a key is expired
|
||||||
for key in keys:
|
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)
|
to_fetch.append(torrent_id)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user