From 3fba0062078cc04eabb460ec1eb13a4739235199 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Fri, 7 Sep 2018 17:59:46 -0700 Subject: Update bare exceptions to specify Exception. This will keep us from accidentally catching program-exiting exceptions like KeyboardInterupt and SystemExit. --- test/units/modules/network/vyos/vyos_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/units/modules/network/vyos/vyos_module.py') diff --git a/test/units/modules/network/vyos/vyos_module.py b/test/units/modules/network/vyos/vyos_module.py index 264cd5c66e..138c684e88 100644 --- a/test/units/modules/network/vyos/vyos_module.py +++ b/test/units/modules/network/vyos/vyos_module.py @@ -40,7 +40,7 @@ def load_fixture(name): try: data = json.loads(data) - except: + except Exception: pass fixture_data[path] = data -- cgit v1.2.1