summaryrefslogtreecommitdiff
path: root/paramiko/sftp_file.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-19 08:06:35 -0800
committerScott Maxwell <scott@codecobblers.com>2013-11-19 08:06:35 -0800
commit25dd096da065b1bc2f35c1a62d8a7055b022818b (patch)
tree94e87015ebcb83660452c79093e1ac407e360306 /paramiko/sftp_file.py
parent3ce336c88b7bfbfad03fab17bff8cb3c3a77176c (diff)
downloadparamiko-25dd096da065b1bc2f35c1a62d8a7055b022818b.tar.gz
Change all exceptions to modern format (not Py2.5 compatible)
Diffstat (limited to 'paramiko/sftp_file.py')
-rw-r--r--paramiko/sftp_file.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py
index 3b2bcbf3..f0f7e382 100644
--- a/paramiko/sftp_file.py
+++ b/paramiko/sftp_file.py
@@ -464,8 +464,8 @@ class SFTPFile (BufferedFile):
# save exception and re-raise it on next file operation
try:
self.sftp._convert_status(msg)
- except Exception:
- self._saved_exception = sys.exc_info()[1]
+ except Exception as e:
+ self._saved_exception = e
return
if t != CMD_DATA:
raise SFTPError('Expected data')