diff --git a/utils/arg_parser.py b/utils/arg_parser.py index 1de43b30..41e2afac 100644 --- a/utils/arg_parser.py +++ b/utils/arg_parser.py @@ -288,7 +288,9 @@ def add_dist_args(cls, parser: argparse.ArgumentParser): def fail_if_product_version_not_supported(product_version: str, parser: DockerCIArgumentParser): - if product_version < "2022.1": + if product_version is None: + parser.error("Product version is not specified.") + elif product_version < "2022.1": parser.error( f"This version of the DockerHub CI framework does not support OpenVINO releases earlier than " '2022.1.0. Current detected product version "{product_version}". Please use previous versions '