deluge-console info -s fails

General support for problems installing or using Deluge
Post Reply
dmanye
New User
New User
Posts: 1
Joined: Tue Nov 09, 2021 10:17 am

deluge-console info -s fails

Post 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.
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: deluge-console info -s fails

Post 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.
Post Reply