mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-24 04:04:44 +00:00
Fix crash caused by no events occurring in retention interval
This commit is contained in:
@@ -69,6 +69,9 @@ class MissingEventChecker:
|
|||||||
limit=chunk_size,
|
limit=chunk_size,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if not events_chunk:
|
||||||
|
break # There were no events to backup
|
||||||
|
|
||||||
start_time = events_chunk[-1].end
|
start_time = events_chunk[-1].end
|
||||||
unifi_events = {event.id: event for event in events_chunk}
|
unifi_events = {event.id: event for event in events_chunk}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user