diff --git a/deluge/plugins/execute/execute/core.py b/deluge/plugins/execute/execute/core.py index 9d95f74f9..fafe2037f 100644 --- a/deluge/plugins/execute/execute/core.py +++ b/deluge/plugins/execute/execute/core.py @@ -109,7 +109,7 @@ class Core(CorePluginBase): save_path = info["save_path"] # getProcessOutputAndValue requires args to be str - if isinstance(torrent_name, unicode): + if isinstance(torrent_id, unicode): torrent_id = torrent_id.encode("utf-8", "ignore") if isinstance(torrent_name, unicode): torrent_name = torrent_name.encode("utf-8", "ignore")