From 51b62822a33ef61c40e1d119ec3816a2f8828b6f Mon Sep 17 00:00:00 2001 From: Tamer Ahmed Date: Tue, 7 Apr 2020 10:57:40 -0700 Subject: [PATCH] making lgtm happy --- ansible/roles/test/files/ptftests/device_connection.py | 3 --- ansible/roles/test/files/ptftests/sad_path.py | 1 - 2 files changed, 4 deletions(-) diff --git a/ansible/roles/test/files/ptftests/device_connection.py b/ansible/roles/test/files/ptftests/device_connection.py index 701155a548..a29ea493b0 100644 --- a/ansible/roles/test/files/ptftests/device_connection.py +++ b/ansible/roles/test/files/ptftests/device_connection.py @@ -53,13 +53,10 @@ def execCommand(self, cmd, timeout=DEFAULT_CMD_EXECUTION_TIMEOUT_SEC): retValue = 0 except SSHException as sshException: logger.error('SSH Command failed with message: %s' % sshException) - pass except AuthenticationException as authenticationException: logger.error('SSH Authentiaction failure with message: %s' % authenticationException) - pass except BadHostKeyException as badHostKeyException: logger.error('SSH Authentiaction failure with message: %s' % badHostKeyException) - pass finally: client.close() diff --git a/ansible/roles/test/files/ptftests/sad_path.py b/ansible/roles/test/files/ptftests/sad_path.py index 01d888dc71..85e61d20e5 100644 --- a/ansible/roles/test/files/ptftests/sad_path.py +++ b/ansible/roles/test/files/ptftests/sad_path.py @@ -1,7 +1,6 @@ import datetime import ipaddress import re -import subprocess import time from arista import Arista