diff --git a/src/fosslight_oss_pkg/_parsing_excel.py b/src/fosslight_oss_pkg/_parsing_excel.py index 0fd2d8d..4e63633 100644 --- a/src/fosslight_oss_pkg/_parsing_excel.py +++ b/src/fosslight_oss_pkg/_parsing_excel.py @@ -22,7 +22,7 @@ def get_sheet_name(yaml_file, sheet_list): yaml_file = yaml_file[0:MAX_SHEET_NAME_LEN] count = 1 - while yaml_file in sheet_list: + while yaml_file in sheet_list.keys(): end_idx = MAX_SHEET_NAME_LEN - 1 - len(str(count)) yaml_file = f"{yaml_file[0:end_idx]}_{count}" count += 1