summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-01-18 14:22:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-19 17:24:47 +0000
commitbda77fd50684c32e464bf2e03376c46d41cabbdc (patch)
tree6f3ea73a35029c5f9b9e2758799da1444a16c1c6 /scripts
parentef211a5ca1e39d1111b21ab3a4218c254dd8dc41 (diff)
downloadpoky-bda77fd50684c32e464bf2e03376c46d41cabbdc.tar.gz
wic: add custom exception KickStartError
This exception will be raised by kickstart parser on parsing errors and processed in the code which calls parser to produce meaningful error output. (From OE-Core rev: 13092793693c1c0ea172701578506f4a70a093d2) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/kickstart.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/wic/kickstart.py b/scripts/lib/wic/kickstart.py
index 22083950f0..7f0105dd07 100644
--- a/scripts/lib/wic/kickstart.py
+++ b/scripts/lib/wic/kickstart.py
@@ -31,6 +31,9 @@ from argparse import ArgumentParser, ArgumentTypeError
31 31
32from wic.partition import Partition 32from wic.partition import Partition
33 33
34class KickStartError(Exception):
35 pass
36
34def sizetype(arg): 37def sizetype(arg):
35 """ 38 """
36 Custom type for ArgumentParser 39 Custom type for ArgumentParser