This commit is contained in:
2024-12-06 12:39:35 -06:00
parent 70049aad14
commit 85ee243f8d
3 changed files with 25 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ def scrape_and_log(url: str) -> None:
print(f"A log already exists for {latest_log} or later. Skipping new log.")
return
if last_seen_time.hour == latest_log.hour:
if latest_log and last_seen_time.hour == latest_log.hour:
print(f"An entry for this hour already exists. Skipping new log.")
return