mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-19 19:14:55 +00:00
[#3439] Execute plugin fails to run on Windows
Fixed TypeError: a bytes-like object is required, not 'str'
This commit is contained in:
parent
610a1bb313
commit
9c90136f57
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue