Page 1 of 1

deluge-console info -s fails

Posted: Tue Nov 09, 2021 10:31 am
by dmanye
hello,

i'm using deluge 2.0.3 from official debian packages (debian 11 bullseye). while the command

Code: Select all

deluge-console info
works ok, when i try to filter packages using the "-s" flag i get this error:

Code: Select all

~$ deluge-console info -s Seeding
 'dict' object has no attribute 'state'
11:23:56 [ERROR   ][deluge.ui.console.cmdline.command                     :138 ] 'dict' object has no attribute 'state'
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/info.py", line 194, in handle
    status_dict.state = options.state
AttributeError: 'dict' object has no attribute 'state'
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/info.py", line 194, in handle
    status_dict.state = options.state
AttributeError: 'dict' object has no attribute 'state'
i've found that changing the line 194 from file

Code: Select all

/usr/lib/python3/dist-packages/deluge/ui/console/cmdline/commands/info.py
:

Code: Select all

status_dict.state = options.state
with this:

Code: Select all

status_dict['state'] = options.state
then it works for me.

thanks.

Re: deluge-console info -s fails

Posted: Tue Nov 09, 2021 10:45 am
by mhertz
Thanks for reporting and posting your fix, appreciated :)

I made a ticket on the bugtracker previously, with this issue(and suggested fix by jbrid, which last reported it here) and a couple other console-UI issues while add it: https://dev.deluge-torrent.org/ticket/3462#ticket

Thanks again for your post.