Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying --json -o active along with --start generates a python dict related error #142

Open
rmzg opened this issue Apr 4, 2022 · 0 comments

Comments

@rmzg
Copy link

rmzg commented Apr 4, 2022

rtcontrol --json -o active --start hash=4B05007F51D725465314E6B4F0FABE4C7739D7F6
INFO     About to START 1 out of 7 torrents.
INFO     Total time: 0.007 seconds.
Traceback (most recent call last):
  File "/home/buu/bin/rtcontrol", line 11, in <module>
    load_entry_point('pyrocore', 'console_scripts', 'rtcontrol')()
  File "/home/buu/.local/pyroscope/src/pyrocore/scripts/rtcontrol.py", line 824, in run
    RtorrentControl().run()
  File "/home/buu/.local/pyroscope/src/pyrocore/scripts/base.py", line 268, in run
    self.mainloop()
  File "/home/buu/.local/pyroscope/src/pyrocore/scripts/rtcontrol.py", line 732, in mainloop
    self.json_dump(action_results)
  File "/home/buu/.local/pyroscope/src/pyrocore/scripts/rtcontrol.py", line 474, in json_dump
    for i in data]
AttributeError: 'dict' object has no attribute 'active'

Is this supposed to happen?

Note that the item in question is in fact started regardless of the json_dump error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant