Author: damoxc
Revision: 5118
Log:
fix missing torrent_id in on_alert_state_changed
Diff:
Modified: trunk/deluge/core/torrentmanager.py
===================================================================
--- trunk/deluge/core/torrentmanager.py 2009-04-21 17:27:55 UTC (rev 5117)
+++ trunk/deluge/core/torrentmanager.py 2009-04-21 18:32:34 UTC (rev 5118)
@@ -747,7 +747,8 @@
def on_alert_state_changed(self, alert):
log.debug("on_alert_state_changed")
try:
- torrent = self.torrents[str(alert.handle.info_hash())]
+ torrent_id = str(alert.handle.info_hash())
+ torrent = self.torrents[torrent_id]
except:
return
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---