fix infinity cycle

This commit is contained in:
2025-09-12 20:25:12 +03:00
parent ed65e5b483
commit 4484148e8a
2 changed files with 13 additions and 1 deletions

View File

@@ -94,7 +94,11 @@ def process_excel_file(facultet, excel_url, counter, timeid):
excel_info['stat']['cycles'] += 1
print(f"Parsing sheet №{reader.get_sheet_index()+1} (from 1)")
prs = parser.Parser(reader)
print("Parser created; parser.parse();")
prs.parse()
print("parsed done!")
if prs.parser_error is not None:
excel_info["parser_error_cycle_" + excel_info['stat']['cycles']] = prs.parser_error