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/lib/odl_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfc/lib') diff --git a/sfc/lib/odl_utils.py b/sfc/lib/odl_utils.py index a60fb557..ebc6a873 100644 --- a/sfc/lib/odl_utils.py +++ b/sfc/lib/odl_utils.py @@ -64,7 +64,7 @@ def get_active_rsps_on_ports(odl_ip, odl_port, neutron_ports): # We get the first ace. ODL creates a new ACL # with one ace for each classifier ace = acl['access-list-entries']['ace'][0] - except: + except Exception: logger.warn('ACL {0} does not have an ACE'.format( acl['acl-name'])) continue -- cgit 1.2.3-korg