use raise warining in version check
Signed-off-by: Cindy Liu <hcindyl@google.com>
This commit is contained in:
parent
807a42e91e
commit
498fd84a55
2 changed files with 2 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ def generate(args, invocations):
|
|||
# version which supports it.
|
||||
jinja2_version = version("jinja2")
|
||||
if jinja2_version < "2.10":
|
||||
sys.exit("Jinja2 should be >= 2.10")
|
||||
raise Warning("Jinja2 should be >= 2.10")
|
||||
|
||||
header_title = "API"
|
||||
if args.libsel4:
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ def generate_kernel_file(kernel_header, api, debug):
|
|||
# version which supports it.
|
||||
jinja2_version = version("jinja2")
|
||||
if jinja2_version < "2.10":
|
||||
sys.exit("Jinja2 should be >= 2.10")
|
||||
raise Warning("Jinja2 should be >= 2.10")
|
||||
|
||||
template = Environment(loader=BaseLoader, trim_blocks=False,
|
||||
lstrip_blocks=False).from_string(KERNEL_HEADER_TEMPLATE)
|
||||
|
|
|
|||
Loading…
Reference in a new issue