From b8ef29174adcbd1e143aaa3226baa4d4ffecbbd8 Mon Sep 17 00:00:00 2001 From: Germann Elsa Sylvia Date: Fri, 24 Feb 2023 10:00:58 +0100 Subject: [PATCH] FIX: len for modules check --- pmodules_tools/db_diff/check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmodules_tools/db_diff/check.py b/pmodules_tools/db_diff/check.py index 550131ab..665275cd 100644 --- a/pmodules_tools/db_diff/check.py +++ b/pmodules_tools/db_diff/check.py @@ -28,10 +28,10 @@ def asciidoc_json_dump(list, name, steps, Pmodules_db_path): matrix_db = temp_matrix_db # Update the database for new changes - if len(list) > 1: + if len(list) != 0: list_range = len(list) - steps + 1 for index in range(0, list_range, steps): - if len(list[index]) > 1: + if len(list[index]) != 0: matrix_row = [list[index].split()[0]] if steps == 2: matrix_row += [