From 89bdd919a73d196849dd9f83bd8df74e710f5b0b Mon Sep 17 00:00:00 2001 From: Stephen Bourke Date: Sat, 26 Aug 2023 13:43:56 +0100 Subject: [PATCH] Remove redundant except --- tests/pytests/functional/modules/test_ipset.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/pytests/functional/modules/test_ipset.py b/tests/pytests/functional/modules/test_ipset.py index 5b77fa3dd0b..16fc12eac8b 100644 --- a/tests/pytests/functional/modules/test_ipset.py +++ b/tests/pytests/functional/modules/test_ipset.py @@ -59,7 +59,5 @@ def test_ipset_new_set_with_family(ipset): check_set = ipset.list_sets() try: assert any([x for x in check_set if x["Name"] == set_name]) - except Exception as e: - raise e finally: ipset.delete_set(set_name)