From 64865af3bb82d773612d5f2e8d8a9bff0b2e5e23 Mon Sep 17 00:00:00 2001 From: Joe Garcia Date: Thu, 26 Jan 2023 16:27:29 -0500 Subject: [PATCH] Fix API Lint Failure - remove bare excepts --- awx/main/credential_plugins/conjur.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/awx/main/credential_plugins/conjur.py b/awx/main/credential_plugins/conjur.py index 0026bb330b..5510667d4c 100644 --- a/awx/main/credential_plugins/conjur.py +++ b/awx/main/credential_plugins/conjur.py @@ -72,8 +72,6 @@ def conjur_backend(**kwargs): resp = requests.post(urljoin(url, '/'.join(['authn', account, username, 'authenticate'])), **auth_kwargs) except requests.exceptions.ConnectionError: resp = requests.post(urljoin(url, '/'.join(['api', 'authn', account, username, 'authenticate'])), **auth_kwargs) - except: - resp = requests.post(urljoin(url, '/'.join(['api', 'authn', account, username, 'authenticate'])), **auth_kwargs) raise_for_status(resp) token = resp.content.decode('utf-8') @@ -96,8 +94,6 @@ def conjur_backend(**kwargs): resp = requests.get(path, timeout=30, **lookup_kwargs) except requests.exceptions.ConnectionError: resp = requests.get(path_conjurcloud, timeout=30, **lookup_kwargs) - except: - resp = requests.get(path_conjurcloud, timeout=30, **lookup_kwargs) raise_for_status(resp) return resp.text