sftp connection failure should raise a more specific exception
Bug #49172 reported by
David Allouche
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
John A Meinel |
Bug Description
When a SFTP connection fails (which may be expected, for example when missing
credentials), the SFTPClient constructor raises an EOFError in _read_all, and
that exception bubbles up all the way to the user.
bzrlib should catch the error and raise an appropriate specific exception.
The bzr command line should catch that specific exception and print an error
message.
Related branches
lp:~jameinel/bzr/sftp-error-49172
(Merged)
Changed in bzr: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Mailing post from an user that tried to push to launchpad without
registering his ssh key:
https:/ /lists. ubuntu. com/archives/ launchpad- users/2006- June/000395. html
The user got the following output:
sebi at sebi-mac: ~/Desktop/ Entwicklung/ update- manager/ sebi$ bzr push /~glatzor/ update- manager/ sebi EOFError: python2. 4/site- packages/ paramiko/ sftp.py line 150
sftp://<email address hidden>
Permission denied (publickey).
bzr: ERROR: exceptions.
at /usr/lib/
in _read_all