[rhel7-branch] Catch OSError if there are problems running authconfig. (#994674)
Samantha N. Bueno
sbueno+anaconda at redhat.com
Tue Dec 3 14:12:00 UTC 2013
We were catching the wrong type of error previously, which caused a
traceback.
Resolves: rhbz#994674
---
pyanaconda/kickstart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index d615208..1b1e3ab 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -232,7 +232,7 @@ class Authconfig(commands.authconfig.FC3_Authconfig):
try:
iutil.execWithRedirect("/usr/sbin/authconfig", args, root=ROOT_PATH)
- except RuntimeError as msg:
+ except OSError as msg:
log.error("Error running /usr/sbin/authconfig %s: %s", args, msg)
class AutoPart(commands.autopart.F20_AutoPart):
--
1.8.3.1
More information about the anaconda-patches
mailing list