From 069be5b888d48528f231bbd82e3535b5822f1aad Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Wed, 8 Aug 2012 08:56:12 -0700 Subject: [PATCH] Make exception more specific (OSError) in setup module for selinux call --- setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup b/setup index f52f9cecad0..d4b73f4ac4d 100755 --- a/setup +++ b/setup @@ -126,7 +126,7 @@ class Facts(object): self.facts['selinux']['status'] = 'enabled' try: self.facts['selinux']['policyvers'] = selinux.security_policyvers() - except: + except OSError, e: self.facts['selinux']['policyvers'] = 'unknown' try: (rc, configmode) = selinux.selinux_getenforcemode()