From b12d10fd720ad4268b28d90d18f8674ba78a9be8 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Sun, 26 Mar 2006 12:46:35 -0800 Subject: [project @ robey@lag.net-20060326204635-1c5418c54187b95d] fix exception-catching error found by alexander belchenko --- tests/stub_sftp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/stub_sftp.py') 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 = '' try: os.symlink(target_path, path) - except: + except OSError, e: return SFTPServer.convert_errno(e.errno) return SFTP_OK -- cgit v1.2.3