From: Ed Bartosh Date: Mon, 18 Jan 2016 12:22:41 +0000 (+0200) Subject: wic: add custom exception KickStartError X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~27637 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13092793693c1c0ea172701578506f4a70a093d2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/kickstart.py b/scripts/lib/wic/kickstart.py index 22083950f0e..7f0105dd071 100644 --- a/scripts/lib/wic/kickstart.py +++ b/scripts/lib/wic/kickstart.py @@ -31,6 +31,9 @@ from argparse import ArgumentParser, ArgumentTypeError from wic.partition import Partition +class KickStartError(Exception): + pass + def sizetype(arg): """ Custom type for ArgumentParser