andreafrancia / trash-cli

Command line interface to the freedesktop.org trashcan.
GNU General Public License v2.0
3.53k stars 177 forks source link

Crash with `--volumes`: AttributeError: 'PrintVolumesList' object has no attribute 'run_action' #334

Closed alichtman closed 3 months ago

alichtman commented 5 months ago

Crash when using --volumes.

shotwell on ξ‚  master is πŸ“¦ v33.alpha via πŸ’Ž v3.2.2 took 40ms
12:10:36 PM ➜ trash-list --volumes
Traceback (most recent call last):
  File "/usr/local/bin/trash-list", line 5, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/alichtman/.local/pipx/venvs/trash-cli/lib/python3.11/site-packages/trashcli/list/main.py", line 41, in main
    ).run(sys.argv)
      ^^^^^^^^^^^^^
  File "/home/alichtman/.local/pipx/venvs/trash-cli/lib/python3.11/site-packages/trashcli/list/main.py", line 91, in run
    action.run_action(args)
    ^^^^^^^^^^^^^^^^^
AttributeError: 'PrintVolumesList' object has no attribute 'run_action'

trash-cli version trash-list 0.23.11.10

Are you using the latest version of trash-cli? Yes

Have you tried if the bug is present in the latest version of trash-cli? Yes

Operating system:

To Reproduce Copy and paste the commands (and their output) to execute in order to reproduce the behavior:

$ trash-list --volumes

Expected behavior

Not a crash.

andreafrancia commented 3 months ago

Thank you, solved.