add-apt-repository traceback when hitting ctrl-c
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
add-apt-repository says to hit ctrl-c to cancel adding a PPA. Then it tracebacks when you do:
ubuntu@bysen:~$ sudo add-apt-repository ppa:maas/next
This PPA holds new upstream development releases, usually development releases. Currently, it is holding the 2.2 series.
More info: https:/
Press [ENTER] to continue or ctrl-c to cancel adding it
^CTraceback (most recent call last):
File "/usr/bin/
sys.
KeyboardInterrupt
I understand why the trace is generated, but this is ugly (users should never see tracebacks for known conditions, IMO).
The KeyboardInterrupt exception should be handled properly like any other exception.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: software-
ProcVersionSign
Uname: Linux 4.4.0-83-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.9
Architecture: amd64
Date: Fri Jul 14 23:17:57 2017
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- No reviews requested
Changed in software-properties (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
Changed in software-properties (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
Status changed to 'Confirmed' because the bug affects multiple users.