diff options
author | scudre <20219711+scudre@users.noreply.github.com> | 2020-11-14 17:12:32 -0800 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2021-01-29 18:17:35 +0000 |
commit | 9c90136f57b607937a6deb64481e6785421fd455 (patch) | |
tree | 2db04de55e373261bdefc7a23297e9d53d2d310c | |
parent | 610a1bb3139f8ded69561b290d7ce61b5a039676 (diff) | |
download | deluge-9c90136f57b607937a6deb64481e6785421fd455.tar.gz deluge-9c90136f57b607937a6deb64481e6785421fd455.tar.bz2 deluge-9c90136f57b607937a6deb64481e6785421fd455.zip |
[#3439] Execute plugin fails to run on Windows
Fixed TypeError: a bytes-like object is required, not 'str'
-rw-r--r-- | deluge/plugins/Execute/deluge_execute/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/plugins/Execute/deluge_execute/core.py b/deluge/plugins/Execute/deluge_execute/core.py index 9dcd97aaa..f5fa2c2e6 100644 --- a/deluge/plugins/Execute/deluge_execute/core.py +++ b/deluge/plugins/Execute/deluge_execute/core.py @@ -135,7 +135,7 @@ class Core(CorePluginBase): ] if windows_check(): # Escape ampersand on windows (see #2784) - cmd_args = [cmd_arg.replace('&', '^^^&') for cmd_arg in cmd_args] + cmd_args = [cmd_arg.replace(b'&', b'^^^&') for cmd_arg in cmd_args] if os.path.isfile(command) and os.access(command, os.X_OK): log.debug('Running %s with args: %s', command, cmd_args) |