summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/remote_management/foreman/_foreman.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/remote_management/foreman/_foreman.py')
-rw-r--r--lib/ansible/modules/remote_management/foreman/_foreman.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/remote_management/foreman/_foreman.py b/lib/ansible/modules/remote_management/foreman/_foreman.py
index 8231b2334e..874d101724 100644
--- a/lib/ansible/modules/remote_management/foreman/_foreman.py
+++ b/lib/ansible/modules/remote_management/foreman/_foreman.py
@@ -76,7 +76,7 @@ try:
from nailgun import entities
from nailgun.config import ServerConfig
HAS_NAILGUN_PACKAGE = True
-except:
+except Exception:
HAS_NAILGUN_PACKAGE = False
from ansible.module_utils.basic import AnsibleModule