diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/conf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lib/wic/conf.py b/scripts/lib/wic/conf.py index 2e2945130c..922a0f68e6 100644 --- a/scripts/lib/wic/conf.py +++ b/scripts/lib/wic/conf.py | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | import os | 18 | import os |
19 | 19 | ||
20 | from wic.kickstart import KickStart | 20 | from wic.kickstart import KickStart, KickStartError |
21 | from wic import msger | 21 | from wic import msger |
22 | from wic.utils import misc | 22 | from wic.utils import misc |
23 | 23 | ||
@@ -87,7 +87,10 @@ class ConfigMgr(object): | |||
87 | if not ksconf: | 87 | if not ksconf: |
88 | return | 88 | return |
89 | 89 | ||
90 | ksobj = KickStart(ksconf) | 90 | try: |
91 | ksobj = KickStart(ksconf) | ||
92 | except KickStartError as err: | ||
93 | msger.error(str(err)) | ||
91 | 94 | ||
92 | self.create['ks'] = ksobj | 95 | self.create['ks'] = ksobj |
93 | self.create['name'] = os.path.splitext(os.path.basename(ksconf))[0] | 96 | self.create['name'] = os.path.splitext(os.path.basename(ksconf))[0] |