diff options
author | Scott Maxwell <scott@codecobblers.com> | 2013-11-19 08:06:35 -0800 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2013-11-19 08:06:35 -0800 |
commit | 25dd096da065b1bc2f35c1a62d8a7055b022818b (patch) | |
tree | 94e87015ebcb83660452c79093e1ac407e360306 /tests/test_sftp.py | |
parent | 3ce336c88b7bfbfad03fab17bff8cb3c3a77176c (diff) |
Change all exceptions to modern format (not Py2.5 compatible)
Diffstat (limited to 'tests/test_sftp.py')
-rwxr-xr-x | tests/test_sftp.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 4a412582..1a7ad02c 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -650,8 +650,7 @@ class SFTPTest (unittest.TestCase): try: sftp.rename(FOLDER + '/something', FOLDER + '/' + unicode_folder) sftp.open(b(FOLDER) + utf8_folder, 'r') - except Exception: - e = sys.exc_info()[1] + except Exception as e: self.fail('exception ' + str(e)) sftp.unlink(b(FOLDER) + utf8_folder) |