fix exception-catching error found by alexander belchenko
This commit is contained in:
parent
016060388a
commit
b12d10fd72
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue