'Connection timed out' on lp branch attempt shouldn't result in a crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
I tried to lp branch on a machine that was having network trouble, and so the connection timed out. This is an error, but it shouldn't throw a stack-trace and tell me to report a bug. Instead, the error should be caught inside the lp handler and the user should be given a more sensible error message.
Transcript:
$ bzr branch lp:bzr-loom loom
bzr: ERROR: socket.error: (110, 'Connection timed out')
Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
accelerator
File "/usr/lib/
bzrdir = klass.open(
File "/usr/lib/
return BzrDir.
File "/usr/lib/
redirected)
File "/usr/lib/
return obj(*args, **kwargs)
File "/usr/lib/
return action(transport)
File "/usr/lib/
return transport, BzrDirFormat.
File "/usr/lib/
return format.
File "/usr/lib/
format_string = transport.
File "/usr/lib/
self.
File "/usr/lib/
target = self._resolve(
File "/usr/lib/
result = resolve.
File "/usr/lib/
self.
File "/usr/lib/
result = method(
File "/usr/lib/
return self.__
File "/usr/lib/
verbose=
File "/usr/lib/
self.
File "/usr/lib/
connection.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
sock.
File "<string>", line 1, in connect
error: (110, 'Connection timed out')
bzr 1.1.0.candidate.1 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'lp:bzr-loom', 'loom']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bzrtools /usr/lib/
email /usr/lib/
gtk /usr/lib/
launchpad /usr/lib/
multiparent /usr/lib/
rebase /usr/lib/
svn /usr/lib/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
tags: | added: check-for-breezy |
Could you try again with the latest version of bzr? (1.5 at the moment)