fix exception-catching error found by alexander belchenko
This commit is contained in:
Robey Pointer 2006-03-26 12:46:35 -08:00
parent 016060388a
commit b12d10fd72
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class StubSFTPServer (SFTPServerInterface):
target_path = '<error>' target_path = '<error>'
try: try:
os.symlink(target_path, path) os.symlink(target_path, path)
except: except OSError, e:
return SFTPServer.convert_errno(e.errno) return SFTPServer.convert_errno(e.errno)
return SFTP_OK return SFTP_OK