You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When entering a value of of range, restore-trash crashes:
(saucy)andreas@incubator:~$ restore-trash
0 2013-08-02 12:50:39 /home/andreas/temp/2
1 2013-08-02 12:50:39 /home/andreas/temp/1
What file to restore [0..1]: 2
Traceback (most recent call last):
File "/usr/bin/restore-trash", line 9, in
load_entry_point('trash-cli==0.12.7', 'console_scripts', 'restore-trash')()
File "/usr/lib/python2.7/dist-packages/trashcli/cmds.py", line 20, in restore
input = raw_input
File "/usr/lib/python2.7/dist-packages/trashcli/trash.py", line 549, in run
trashed_files[index].restore()
IndexError: list index out of range
restore-crash should check the user input, give an error and go back to the selection screen when the value entered is invalid.
The text was updated successfully, but these errors were encountered:
When entering a value of of range, restore-trash crashes:
(saucy)andreas@incubator:~$ restore-trash
0 2013-08-02 12:50:39 /home/andreas/temp/2
1 2013-08-02 12:50:39 /home/andreas/temp/1
What file to restore [0..1]: 2
Traceback (most recent call last):
File "/usr/bin/restore-trash", line 9, in
load_entry_point('trash-cli==0.12.7', 'console_scripts', 'restore-trash')()
File "/usr/lib/python2.7/dist-packages/trashcli/cmds.py", line 20, in restore
input = raw_input
File "/usr/lib/python2.7/dist-packages/trashcli/trash.py", line 549, in run
trashed_files[index].restore()
IndexError: list index out of range
restore-crash should check the user input, give an error and go back to the selection screen when the value entered is invalid.
The text was updated successfully, but these errors were encountered: