#3286: Error setting some config values from console ('str' object has no
attribute 'decode')
----------------------+----------------------------
  Reporter:  paulo    |      Owner:
      Type:  bug      |     Status:  new
  Priority:  minor    |  Milestone:  needs verified
 Component:  Unknown  |    Version:  2.0.3
Resolution:           |   Keywords:
----------------------+----------------------------

Comment (by cclecle):

 Same here while trying to set any string config key.

 Debian 11
 Deluge 2.0.3-3.1
 Deluge-console 2.0.3-3.1
 Python 3.9.2

 {{{
 MyUser@localhost:/# deluge-console -U MyUser -P MyPassword config -s
 move_completed_path /test/
  'str' object has no attribute 'decode'
 18:26:07 [ERROR   ][deluge.ui.console.cmdline.command
 :138 ] 'str' object has no attribute 'decode'
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-
 packages/deluge/ui/console/cmdline/command.py", line 135, in exec_command
     ret = self._commands[options.command].handle(options)
   File "/usr/lib/python3/dist-
 packages/deluge/ui/console/cmdline/commands/config.py", line 104, in
 handle
     return self._set_config(options)
   File "/usr/lib/python3/dist-
 packages/deluge/ui/console/cmdline/commands/config.py", line 143, in
 _set_config
     val = simple_eval(val)
   File "/usr/lib/python3/dist-
 packages/deluge/ui/console/cmdline/commands/config.py", line 72, in
 simple_eval
     res = atom(src, next(src))
   File "/usr/lib/python3/dist-
 packages/deluge/ui/console/cmdline/commands/config.py", line 57, in atom
     return token[-1].decode('string-escape')
 AttributeError: 'str' object has no attribute 'decode'
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-
 packages/deluge/ui/console/cmdline/command.py", line 135, in exec_command
     ret = self._commands[options.command].handle(options)
   File "/usr/lib/python3/dist-
 packages/deluge/ui/console/cmdline/commands/config.py", line 104, in
 handle
     return self._set_config(options)
   File "/usr/lib/python3/dist-
 packages/deluge/ui/console/cmdline/commands/config.py", line 143, in
 _set_config
     val = simple_eval(val)
   File "/usr/lib/python3/dist-
 packages/deluge/ui/console/cmdline/commands/config.py", line 72, in
 simple_eval
     res = atom(src, next(src))
   File "/usr/lib/python3/dist-
 packages/deluge/ui/console/cmdline/commands/config.py", line 57, in atom
     return token[-1].decode('string-escape')
 AttributeError: 'str' object has no attribute 'decode'
 }}}

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3286#comment:2>
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 deluge-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/deluge-dev/059.9abb5bbd55b2533f0629c8386596ce9d%40deluge-torrent.org.

Reply via email to