diff --git a/tests/stub_sftp.py b/tests/stub_sftp.py index 16e91b4..459af06 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