From c1d0540d1e1b34336bdbca3acd251ab594c88b9d Mon Sep 17 00:00:00 2001 From: Joe Testa Date: Wed, 27 Sep 2017 22:42:49 -0400 Subject: [PATCH] Fixed one more warning. --- ssh-audit.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ssh-audit.py b/ssh-audit.py index a57858d..aedabc8 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -706,7 +706,6 @@ class SSH2(object): # pylint: disable=too-few-public-methods smallest_modulus = kex_group.get_dh_modulus_size() except Exception: # pylint: disable=bare-except x = 1 # pylint: disable=unused-variable - pass finally: s.close() @@ -729,7 +728,6 @@ class SSH2(object): # pylint: disable=too-few-public-methods smallest_modulus = kex_group.get_dh_modulus_size() except Exception: # pylint: disable=bare-except x = 1 # pylint: disable=unused-variable - pass finally: # The server is in a state that is not re-testable, # so there's nothing else to do with this open