mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 00:18:39 +00:00
Only show the error when displaying the tracker_error
This commit is contained in:
parent
14bfebdb98
commit
57f1409a55
1 changed files with 2 additions and 2 deletions
|
@ -715,8 +715,8 @@ class TorrentManager(component.Component):
|
||||||
def on_alert_tracker_error(self, alert):
|
def on_alert_tracker_error(self, alert):
|
||||||
log.debug("on_alert_tracker_error")
|
log.debug("on_alert_tracker_error")
|
||||||
torrent = self.torrents[str(alert.handle.info_hash())]
|
torrent = self.torrents[str(alert.handle.info_hash())]
|
||||||
|
error_msg = " ".join(alert.message().split()[3:]).split(":")[0]
|
||||||
tracker_status = "%s: %s" % (_("Error"), str(alert.message()))
|
tracker_status = "%s: %s" % (_("Error"), error_msg)
|
||||||
try:
|
try:
|
||||||
torrent.set_tracker_status(tracker_status)
|
torrent.set_tracker_status(tracker_status)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue