Skip to content

Commit

Permalink
arg_parser: Bandit scan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
artanokhov committed Sep 3, 2024
1 parent 6929317 commit ed4adfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down

0 comments on commit ed4adfe

Please sign in to comment.