From a51638ed6231a6a522cbe99b686e47b25adb9f40 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 9 Jul 2008 09:59:33 +0000 Subject: [PATCH] Fix alert handling to use message instead of msg --- deluge/core/torrentmanager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 24e6f6397..8946980db 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -638,7 +638,7 @@ class TorrentManager(component.Component): torrent_id = str(alert.handle.info_hash()) # Set the tracker status for the torrent try: - if alert.msg != "Got peers from DHT": + if alert.message != "Got peers from DHT": self.torrents[torrent_id].set_tracker_status(_("Announce OK")) except KeyError: log.debug("torrent_id doesn't exist.") @@ -669,7 +669,7 @@ class TorrentManager(component.Component): # Get the torrent_id torrent_id = str(alert.handle.info_hash()) tracker_status = "%s: %s" % \ - (_("Alert"), str(alert.msg()).strip('"')[8:]) + (_("Alert"), str(alert.message()).strip('"')[8:]) # Set the tracker status for the torrent try: self.torrents[torrent_id].set_tracker_status(tracker_status) @@ -680,7 +680,7 @@ class TorrentManager(component.Component): log.debug("on_alert_tracker_warning") # Get the torrent_id torrent_id = str(alert.handle.info_hash()) - tracker_status = '%s: %s' % (_("Warning"), str(alert.msg())) + tracker_status = '%s: %s' % (_("Warning"), str(alert.message())) # Set the tracker status for the torrent try: self.torrents[torrent_id].set_tracker_status(tracker_status)