[PATCH 2/2] Handle more possible exceptions in parseKickstart.

David Lehman dlehman at redhat.com
Tue Sep 23 15:32:18 UTC 2014


Related: rhbz#1072285
---
 pyanaconda/kickstart.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index f4fc6d8..9feeee9 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -1874,7 +1874,7 @@ def parseKickstart(f):
 
     try:
         ksparser.readKickstart(f)
-    except KickstartError as e:
+    except (KickstartError, ValueError, StorageError) as e:
         # We do not have an interface here yet, so we cannot use our error
         # handling callback.
         print(e)
-- 
1.9.3



More information about the anaconda-patches mailing list