#3439: Execute plugin fails to run on Windows, exception thrown
----------------------------+------------------------------
Reporter: scudre | Type: bug
Status: new | Priority: minor
Milestone: needs verified | Component: Plugin
Version: 2.0.0 | Keywords: execute, windows
----------------------------+------------------------------
Execute plugin fails to run on Windows. Issue is due to the migration from
Python 2 to Python 3, and the different handling of strings and bytes.
Following exception is thrown when attempting to execute a script:
{{{
Traceback (most recent call last):
File "c:\users\chris\appdata\roaming\deluge\plugins\execute-1.3d-
py3.8.egg\deluge_execute\core.py", line 139, in execute_commands
cmd_args = [cmd_arg.replace('&', '^^^&') for cmd_arg in cmd_args]
File "c:\users\chris\appdata\roaming\deluge\plugins\execute-1.3d-
py3.8.egg\deluge_execute\core.py", line 139, in
cmd_args = [cmd_arg.replace('&', '^^^&') for cmd_arg in cmd_args]
TypeError: a bytes-like object is required, not 'str'
}}}
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3439>
Deluge <https://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/deluge-dev/045.fab7ae3a30f6c94bfe6c8ccd183693ec%40deluge-torrent.org.