From 7d3b99bf3d6df8cc3004526c42b5ffd25bd11aef Mon Sep 17 00:00:00 2001 From: FazziCLAY Date: Fri, 3 Apr 2026 12:47:12 +0300 Subject: [PATCH] safety try --- main.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 28b8fd8..d95cfb6 100644 --- a/main.py +++ b/main.py @@ -28,9 +28,14 @@ def merge_week_keys_metadata(sheets): for month, days in months.items(): if month not in merged[day]: merged[day][month] = [] - for d in days: - if d not in merged[day][month]: - merged[day][month].append(d) + + try: + for d in days: + if d not in merged[day][month]: + merged[day][month].append(d) + except Exception as e: + traceback.print_exception(e) + print(f"sheet_data.reader_info={sheet_data['reader_info']}; week_keys_metadata={wkm}") return merged def get_preferer_facultet(facultets_data: dict, excel_url: str, skip_for=None, ):