Fix crash caused by no events occurring in retention interval

This commit is contained in:
Sebastian Goscik
2023-10-31 17:35:30 +00:00
parent 4a0bd87ef2
commit 60901e9a84

View File

@@ -69,6 +69,9 @@ class MissingEventChecker:
limit=chunk_size,
)
if not events_chunk:
break # There were no events to backup
start_time = events_chunk[-1].end
unifi_events = {event.id: event for event in events_chunk}