diff options
author | Robey Pointer <robey@lag.net> | 2006-03-26 12:46:35 -0800 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-03-26 12:46:35 -0800 |
commit | b12d10fd720ad4268b28d90d18f8674ba78a9be8 (patch) | |
tree | 6b003434174b56c849c8f086d654936b9731b77c /tests/stub_sftp.py | |
parent | 016060388a90f19a4a13e35ac5843179e40e29b3 (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.py | 2 |
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 |