Providing wrong ppa format in add-apt-repository throws a 404 error which is not handled appropriately
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Software Properties |
Fix Committed
|
Undecided
|
Manish Sinha (मनीष सिन्हा) | ||
software-properties (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I was trying to add the elementary PPA, but by mistake added a ~ after :
$ sudo add-apt-repository ppa:~elementary
Traceback (most recent call last):
File "/usr/bin/
ppa_info = get_ppa_
File "/usr/lib/
lp_page = urlopen(req).read()
File "/usr/lib/
return _opener.open(url, data, timeout)
File "/usr/lib/
response = meth(req, response)
File "/usr/lib/
'http', request, response, code, msg, hdrs)
File "/usr/lib/
return self._call_
File "/usr/lib/
result = func(*args)
File "/usr/lib/
raise HTTPError(
urllib2.HTTPError: HTTP Error 404: Not Found
Expected: The exception should be handled and a friendly error message should be shown instead of a verbose exception
---------
$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
--------
$ apt-cache policy python-
python-
Installed: 0.81.13.1
Candidate: 0.81.13.1
--------
Related branches
- Ubuntu Core Development Team: Pending requested
-
Diff: 26 lines (+8/-1)1 file modifiedadd-apt-repository (+8/-1)
summary: |
Providing wrong ppa format in add-apt-repository throws a 404 error - which is not caught + which is not handled appropiately |
summary: |
Providing wrong ppa format in add-apt-repository throws a 404 error - which is not handled appropiately + which is not handled appropriately |
description: | updated |
Changed in software-properties: | |
assignee: | nobody → Manish Sinha (मनीष सिन्हा) (manishsinha) |
status: | New → In Progress |
summary: |
- Providing wrong ppa format in add-apt-repository throws a 404 error - which is not handled appropriately |
summary: |
+ Providing wrong ppa format in add-apt-repository throws a 404 error + which is not handled appropriately |
Changed in software-properties: | |
status: | In Progress → Fix Committed |
They seem to be linked. Bug #782120