Public bug reported:

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://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)

** Affects: software-properties (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug uec-images xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1704508

Title:
  add-apt-repository traceback when hitting ctrl-c

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1704508/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to