Malformed url raises an exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Triaged
|
Low
|
Unassigned |
Bug Description
When trying to branch my project, I wrongly typed the url and added two forward slashes that shouldn't be there (lp://my-project instead of lp:my-project ). As a result of this mistake I'd have expected to get an error message like "branch not found, please double check the url is correct. Example: <some example here>". However, what I got was a long trace because a KeyError exception was raised.
To reproduce the problem, just run the command below:
$ bzr branch lp://my-project
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
from_location)
File "/usr/lib/
controldir = klass.open(
File "/usr/lib/
t = _mod_transport.
File "/usr/lib/
return get_transport_
File "/usr/lib/
location = directories.
File "/usr/lib/
return service(
File "/usr/lib/
return self._resolve(url)
File "/usr/lib/
result = self._resolve_
File "/usr/lib/
base_url = LaunchpadServic
KeyError: u'my-project'
Changed in bzr: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: check-for-breezy |