of the day try block fix

This commit is contained in:
Chuck
2025-09-15 15:27:57 -04:00
parent 0579b3b860
commit 7b1339631c

View File

@@ -191,17 +191,17 @@ class OfTheDayManager:
os.path.join('of_the_day', data_file)
])
# Debug: Show all paths before deduplication
logger.debug(f"All possible paths before deduplication: {possible_paths}")
# 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)
# 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