From fa0d3b9bfcd7ec1bfd60709454d38cf5da378c51 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 14 Sep 2008 20:31:21 +0000 Subject: [PATCH] Only show the error when displaying the tracker_error --- deluge/core/torrentmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 2042cf9f3..51b4ad5cf 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -701,8 +701,8 @@ class TorrentManager(component.Component): def on_alert_tracker_error(self, alert): log.debug("on_alert_tracker_error") torrent = self.torrents[str(alert.handle.info_hash())] - - tracker_status = "%s: %s" % (_("Error"), str(alert.message())) + error_msg = " ".join(alert.message().split()[3:]).split(":")[0] + tracker_status = "%s: %s" % (_("Error"), error_msg) try: torrent.set_tracker_status(tracker_status) except KeyError: