mirror of
https://github.com/seL4/seL4.git
synced 2026-03-27 10:29:57 +00:00
use raise warining in version check
Signed-off-by: Cindy Liu <hcindyl@google.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user