diff options
Diffstat (limited to 'yocto-poky/scripts/lib/wic/conf.py')
-rw-r--r-- | yocto-poky/scripts/lib/wic/conf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/yocto-poky/scripts/lib/wic/conf.py b/yocto-poky/scripts/lib/wic/conf.py index 1d4363a52..f7d56d046 100644 --- a/yocto-poky/scripts/lib/wic/conf.py +++ b/yocto-poky/scripts/lib/wic/conf.py @@ -17,8 +17,8 @@ import os +from wic.ksparser import KickStart, KickStartError from wic import msger -from wic import kickstart from wic.utils import misc @@ -87,7 +87,10 @@ class ConfigMgr(object): if not ksconf: return - ksobj = kickstart.read_kickstart(ksconf) + try: + ksobj = KickStart(ksconf) + except KickStartError as err: + msger.error(str(err)) self.create['ks'] = ksobj self.create['name'] = os.path.splitext(os.path.basename(ksconf))[0] |