summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tests/stub_sftp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stub_sftp.py b/tests/stub_sftp.py
index 16e91b46..459af066 100644
--- a/tests/stub_sftp.py
+++ b/tests/stub_sftp.py
@@ -172,7 +172,7 @@ class StubSFTPServer (SFTPServerInterface):
target_path = '<error>'
try:
os.symlink(target_path, path)
- except:
+ except OSError, e:
return SFTPServer.convert_errno(e.errno)
return SFTP_OK