fix(health-checker): prevent TypeError when last_checked is None

This commit is contained in:
Inaki Fernandez
2026-07-12 13:42:45 +02:00
parent b1fb46117e
commit 6088772df8

View File

@@ -144,7 +144,7 @@ class IntelligentLinkCleaner:
if is_suspicious or entry.get("needs_ai_refresh") or os.getenv("FORCE_FULL_CHECK") == "true":
to_check.append(u)
elif (datetime.now().timestamp() - entry.get("last_checked", 0)) > (86400 * 21):
elif (datetime.now().timestamp() - (entry.get("last_checked") or 0)) > (86400 * 21):
to_check.append(u)
total_to_check = len(to_check)