From 1d9b550e357600be25478fb3490b0976e198b09c Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 17 Feb 2013 16:19:13 +0000 Subject: [PATCH] Replace decode with decode_string --- deluge/core/torrentmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index e5475aecc..fc26026f9 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -1081,7 +1081,7 @@ class TorrentManager(component.Component): def on_alert_file_renamed(self, alert): log.debug("on_alert_file_renamed") - log.debug("index: %s name: %s", alert.index, alert.name.decode("utf8")) + log.debug("index: %s name: %s", alert.index, decode_string(alert.name)) try: torrent = self.torrents[str(alert.handle.info_hash())] torrent_id = str(alert.handle.info_hash())