pyroscope/rtorrent-ps

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

rmzg opened this issue · 0 comments

rmzg commented
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.