use raise warining in version check

Signed-off-by: Cindy Liu <hcindyl@google.com>
This commit is contained in:
Cindy Liu
2023-12-14 19:40:11 -08:00
committed by Gerwin Klein
parent 807a42e91e
commit 498fd84a55
2 changed files with 2 additions and 2 deletions

View File

@@ -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: