try
This commit is contained in:
@@ -87,7 +87,7 @@ class GoogleTrendsScraper:
|
||||
"""Load and return the set of used images."""
|
||||
try:
|
||||
data = load_json_file(FILE_PATHS["used_images"], IMAGE_EXPIRATION_DAYS)
|
||||
return {entry["title"] for entry in data if "title" in entry}
|
||||
return {entry["url"] for entry in data if "url" in entry}
|
||||
except Exception as e:
|
||||
logger.error(f"Error loading used images: {e}")
|
||||
return set()
|
||||
|
||||
Reference in New Issue
Block a user