From 7b9bca09576f17629d6e07c40329ede4682a7185 Mon Sep 17 00:00:00 2001 From: John Garland Date: Wed, 19 Sep 2012 22:23:48 +1000 Subject: [PATCH] Fix copy pasta fail :( --- deluge/plugins/execute/execute/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")