mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-10 19:46:22 +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
@ -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…
x
Reference in New Issue
Block a user