From 4d26d88cd9baeaf35084ab59528223692ad6df25 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Wed, 29 Aug 2018 13:40:49 +0200 Subject: Flake8 fixes When running flake8 I am getting several errors. This patch fixes them Change-Id: I4d32b4b214ca61e98da6fc28a4de44201c4c1cdc Signed-off-by: Manuel Buil --- sfc/tests/functest/setup_scripts/prepare_odl_sfc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfc/tests/functest/setup_scripts/prepare_odl_sfc.py') diff --git a/sfc/tests/functest/setup_scripts/prepare_odl_sfc.py b/sfc/tests/functest/setup_scripts/prepare_odl_sfc.py index 1ddf36a6..dc806232 100644 --- a/sfc/tests/functest/setup_scripts/prepare_odl_sfc.py +++ b/sfc/tests/functest/setup_scripts/prepare_odl_sfc.py @@ -24,7 +24,7 @@ SFC_REPO_DIR = "/home/opnfv/repos/sfc" try: INSTALLER_IP = os.environ['INSTALLER_IP'] -except: +except Exception: logger.debug("INSTALLER_IP does not exist. We create 10.20.0.2") INSTALLER_IP = "10.20.0.2" @@ -64,7 +64,7 @@ try: command = "fuel node | grep compute | awk '{print $10}'" logger.info("Executing ssh to collect the compute IPs") (stdin, stdout, stderr) = ssh.exec_command(command) -except: +except Exception: logger.debug("Something went wrong in the ssh to collect the computes IP") output = stdout.readlines() -- cgit 1.2.3-korg