Comment 3 for bug 1053531

Revision history for this message
Scott Testerman (scott-testerman) wrote :

Agreed that error handling should generally be more graceful. For instance, one is informed when adding a PPA that it is possible to cancel the addition by pressing Ctrl-C, but the result is:

Press [ENTER] to continue or ctrl-c to cancel adding it
^CTraceback (most recent call last):
  File "/usr/bin/apt-add-repository", line 158, in <module>
    sys.stdin.readline()
KeyboardInterrupt

Why not catch the interrupt and simply print an "installation aborted" message?