diff --git a/library/setup b/library/setup index f52f9cecad..d4b73f4ac4 100755 --- a/library/setup +++ b/library/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()