diff options
author | Robey Pointer <robey@lag.net> | 2008-03-22 19:57:51 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2008-03-22 19:57:51 -0700 |
commit | e5a1b4bf569599b53016374f96e53639799ed6d3 (patch) | |
tree | 0086bd5919af7e6e12c9230f53ec50aeec9304e4 /paramiko | |
parent | 7b819f0e917dadedb7cc9399d33fe7b5f9c63a9e (diff) | |
download | paramiko-e5a1b4bf569599b53016374f96e53639799ed6d3.tar.gz |
[project @ robey@lag.net-20080323025751-de0lem9pi4oydt2g]
bug 193779:
catch EOFError in auth, and turn it into an auth exception. add a unit
test to verify.
Diffstat (limited to 'paramiko')
-rw-r--r-- | paramiko/auth_handler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py index 2b336e07..39a0194a 100644 --- a/paramiko/auth_handler.py +++ b/paramiko/auth_handler.py @@ -158,7 +158,7 @@ class AuthHandler (object): event.wait(0.1) if not self.transport.is_active(): e = self.transport.get_exception() - if e is None: + if (e is None) or issubclass(e.__class__, EOFError): e = AuthenticationException('Authentication failed.') raise e if event.isSet(): |