Skip to content

fix crashes on --sort=none and missing deletion date - #406

Open
curious-rabbit wants to merge 1 commit into
andreafrancia:masterfrom
curious-rabbit:sort
Open

fix crashes on --sort=none and missing deletion date#406
curious-rabbit wants to merge 1 commit into
andreafrancia:masterfrom
curious-rabbit:sort

Conversation

@curious-rabbit

Copy link
Copy Markdown

trash-restore --sort=none stops with an error, and a trashed file whose deletion date is missing or unreadable makes the whole listing stop with an error.

--sort=none now lists the files in their original order, a missing date is treated as the oldest so sorting still works, and a missing date is shown as ????-??-?? ??:??:?? instead of stopping with an error.

$ trash-restore --sort=none
Traceback (most recent call last):
  ...
TypeError: NoSorter.sort_files() missing 1 required positional argument: 'trashed_files'

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

Successfully merging this pull request may close these issues.

2 participants