restore-trash crashed with ValueError in run(): invalid literal for int() with base 10: '536-540'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
trash-cli (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
restore-trash crashed when I tried to provide a range of files to delete rather than a single file
To reproduce:
1) Run 'restore-trash'
2) At the input prompt, enter a range like '1-2'
Expected results:
trash-cli complains that the input is invalid; there is no stack dump
Actual results:
Stack dump
[Ideally a range would be valid input!]
ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: trash-cli 0.12.7-1
ProcVersionSign
Uname: Linux 3.5.0-13-generic x86_64
NonfreeKernelMo
ApportVersion: 2.5.1-0ubuntu4
Architecture: amd64
Date: Thu Sep 6 14:15:54 2012
ExecutablePath: /usr/bin/
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/
ProcEnviron:
TERM=xterm
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
PythonArgs: ['/usr/
SourcePackage: trash-cli
Title: restore-trash crashed with ValueError in run(): invalid literal for int() with base 10: '536-540'
UpgradeStatus: Upgraded to quantal on 2012-08-07 (30 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
tags: | removed: need-duplicate-check |
Changed in trash-cli (Ubuntu): | |
importance: | Undecided → Medium |
information type: | Private → Public |
Thanks for the report, forwarded to the author of the software as 2 seperate issues:
https:/ /github. com/andreafranc ia/trash- cli/issues/ 21 - Don't crash on invalid input /github. com/andreafranc ia/trash- cli/issues/ 22 - Support ranges
https:/