Opened 10 months ago

Closed 8 months ago

#3439 closed bug (Fixed)

Execute plugin fails to run on Windows, exception thrown

Reported by: scudre Owned by:
Priority: minor Milestone: 2.0.4
Component: Plugin Version: 2.0.0
Keywords: execute, windows Cc:

Description

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'

Change History (2)

comment:2 Changed 8 months ago by Cas

  • Milestone changed from needs verified to 2.0.4
  • Resolution set to Fixed
  • Status changed from new to closed

Thanks! Fix merged: [9c90136f57b]

Note: See TracTickets for help on using tickets.