Skip to content

Commit

Permalink
skip None values
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-esir committed Sep 18, 2023
1 parent 196b077 commit 097611a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/ovc/openvino/tools/ovc/cli_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def input_to_input_cut_info(input: [dict, tuple, list]):
:param input: input cut parameters passed by user
:return: list of InputCutInfo with input cut parameters
"""
if input is None:
return []

if isinstance(input, (tuple, list)):
if len(input) == 0:
Expand Down

0 comments on commit 097611a

Please sign in to comment.