From 7b1339631c7fb9b0568591a2303e7abec4ea0255 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Mon, 15 Sep 2025 15:27:57 -0400 Subject: [PATCH] of the day try block fix --- src/of_the_day_manager.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/of_the_day_manager.py b/src/of_the_day_manager.py index 8f77503c..00fc4876 100644 --- a/src/of_the_day_manager.py +++ b/src/of_the_day_manager.py @@ -190,18 +190,18 @@ class OfTheDayManager: os.path.join(script_dir, '..', 'of_the_day', data_file), os.path.join('of_the_day', data_file) ]) - - # Debug: Show all paths before deduplication - logger.debug(f"All possible paths before deduplication: {possible_paths}") - - # Remove duplicates while preserving order - seen = set() - unique_paths = [] - for path in possible_paths: - abs_path = os.path.abspath(path) - if abs_path not in seen: - seen.add(abs_path) - unique_paths.append(abs_path) + + # Debug: Show all paths before deduplication + logger.debug(f"All possible paths before deduplication: {possible_paths}") + + # Remove duplicates while preserving order + seen = set() + unique_paths = [] + for path in possible_paths: + abs_path = os.path.abspath(path) + if abs_path not in seen: + seen.add(abs_path) + unique_paths.append(abs_path) possible_paths = unique_paths # Debug: Show paths after deduplication