[Bug 1704508] Re: add-apt-repository traceback when hitting ctrl-c
Brian Murray
brian at ubuntu.com
Wed Sep 6 22:39:27 UTC 2017
** Changed in: software-properties (Ubuntu)
Status: Triaged => In Progress
** Changed in: software-properties (Ubuntu)
Assignee: (unassigned) => Brian Murray (brian-murray)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1704508
Title:
add-apt-repository traceback when hitting ctrl-c
Status in software-properties package in Ubuntu:
In Progress
Bug description:
add-apt-repository says to hit ctrl-c to cancel adding a PPA. Then it
tracebacks when you do:
ubuntu at 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://launchpad.net/~maas/+archive/ubuntu/next
Press [ENTER] to continue or ctrl-c to cancel adding it
^CTraceback (most recent call last):
File "/usr/bin/add-apt-repository", line 143, in <module>
sys.stdin.readline()
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-properties-common 0.96.20.7
ProcVersionSignature: User Name 4.4.0-83.106-generic 4.4.70
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
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1704508/+subscriptions
More information about the foundations-bugs
mailing list