From 0cc73c930b38d51df4fc3462c6d2b38c5bc70bdc 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 --- library/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/setup b/library/setup index f52f9cecad0..d4b73f4ac4d 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()