]> git.michaelhowe.org Git - packages/b/bup.git/commit
cmd/ftp: if completion fails due to FileNotFound, just eat it.
authorGabriel Filion <lelutin@gmail.com>
Tue, 27 Jul 2010 07:24:23 +0000 (03:24 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 27 Jul 2010 07:27:42 +0000 (03:27 -0400)
commita6d0a19cf877cf0804bda4681eec4356cd3c5a38
treeb6a5d8d267f48ea59466579849ee7ddb454d92d2
parent3175874e4e53c64d4d88695c67c36efef05064fd
cmd/ftp: if completion fails due to FileNotFound, just eat it.

Just as bash would do, if you're trying to complete a filename that doesn't
exist, just don't offer any completions.  In this case, it only happens if
you try to complete through a broken symlink.

Now that we've fixed this case, enable the printing of exception tracebacks
in case of *other* kinds of completion errors, since we don't expect there
to be any.

[Committed by apenwarr based on an unofficial patch from Gabriel]
cmd/ftp-cmd.py