summaryrefslogtreecommitdiffhomepage
path: root/tests/stub_sftp.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2006-03-26 12:46:35 -0800
committerRobey Pointer <robey@lag.net>2006-03-26 12:46:35 -0800
commitb12d10fd720ad4268b28d90d18f8674ba78a9be8 (patch)
tree6b003434174b56c849c8f086d654936b9731b77c /tests/stub_sftp.py
parent016060388a90f19a4a13e35ac5843179e40e29b3 (diff)
[project @ robey@lag.net-20060326204635-1c5418c54187b95d]
fix exception-catching error found by alexander belchenko
Diffstat (limited to 'tests/stub_sftp.py')
-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