From b29d018e367b9f19cf640bfa02080d8743b9d151 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 7 Mar 2014 15:10:35 -0800 Subject: [PATCH] Remove an old Py2.5-ism --- paramiko/hostkeys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py index 801bd50..0141bb2 100644 --- a/paramiko/hostkeys.py +++ b/paramiko/hostkeys.py @@ -329,7 +329,7 @@ class HostKeyEntry: return None except binascii.Error as e: - raise InvalidHostKey(line, sys.exc_info()[1]) + raise InvalidHostKey(line, e) return cls(names, key) from_line = classmethod(from_line)