Compare commits

...

1 Commits

Author SHA1 Message Date
Carlos Polop
b50cbaef51 Guard infos collection in peas2json 2026-01-20 23:15:50 +01:00

View File

@@ -127,7 +127,9 @@ def parse_line(line: str):
elif is_section(line, INFO_PATTERN):
title = parse_title(line)
C_SECTION["infos"].append(title)
if C_SECTION == {}:
return
C_SECTION.setdefault("infos", []).append(title)
#If here, then it's text
else: