Module: deluge Branch: master Commit: 8586cda4e01a0bebbb3491c3444a7ea071354e7f
Author: Andrew Resch <[email protected]> Date: Sat Aug 21 12:53:44 2010 -0700 Fix unhandled exception when adding a torrent to the session --- 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 b0a79a5..3b3190b 100644 --- a/deluge/ui/sessionproxy.py +++ b/deluge/ui/sessionproxy.py @@ -241,9 +241,9 @@ class SessionProxy(component.Component): def on_torrent_added(self, torrent_id): self.torrents[torrent_id] = [time.time() - self.cache_time - 1, {}] + self.cache_times[torrent_id] = {} def on_status(status): self.torrents[torrent_id][1].update(status) - self.cache_times[torrent_id] = {} t = time.time() for key in status: self.cache_times[torrent_id][key] = t -- 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.
