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 += [