Fix a typo

This commit is contained in:
Andrew Resch 2008-08-30 23:42:39 +00:00
parent c410f6d242
commit ea16f2ca8f
1 changed files with 2 additions and 2 deletions

View File

@ -628,12 +628,12 @@ class TorrentManager(component.Component):
self.torrents[torrent_id].update_state() self.torrents[torrent_id].update_state()
def on_alert_tracker_reply(self, alert): def on_alert_tracker_reply(self, alert):
log.debug("on_alert_tracker_reply") log.debug("on_alert_tracker_reply: %s", alert.message())
# Get the torrent_id # Get the torrent_id
torrent_id = str(alert.handle.info_hash()) torrent_id = str(alert.handle.info_hash())
# Set the tracker status for the torrent # Set the tracker status for the torrent
try: try:
if alert.message != "Got peers from DHT": if alert.message() != "Got peers from DHT":
self.torrents[torrent_id].set_tracker_status(_("Announce OK")) self.torrents[torrent_id].set_tracker_status(_("Announce OK"))
except KeyError: except KeyError:
log.debug("torrent_id doesn't exist.") log.debug("torrent_id doesn't exist.")